Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when make install on Ubuntu 12.10 #1428

Closed
wlbksy opened this issue Oct 23, 2012 · 2 comments · Fixed by #1429
Closed

error when make install on Ubuntu 12.10 #1428

wlbksy opened this issue Oct 23, 2012 · 2 comments · Fixed by #1429
Labels
kind:bug Indicates an unexpected problem or unintended behavior

Comments

@wlbksy
Copy link
Contributor

wlbksy commented Oct 23, 2012

when using make install ,errors:

wanglei@coding:/julia$ make install
mkdir -p julia-593a0229b6/{sbin,bin,etc,lib/julia,share/julia}
cp /home/wanglei/julia/usr/bin/julia julia-593a0229b6/bin
cp: target `julia-593a0229b6/bin' is not a directory
make: *** [install] Error 1
wanglei@coding:
/julia$ ls julia-593a0229b6/
{sbin,bin,etc,lib
wanglei@coding:/julia/julia-593a0229b6$ cd {sbin,bin,etc,lib/
wanglei@coding:
/julia/julia-593a0229b6/{sbin,bin,etc,lib$ ls
julia,share


however ,mkdir -p julia-593a0229b6/{sbin,bin,etc,lib/julia,share/julia} by hand can create correct directories :

wanglei@coding:/julia$ rm julia-593a0229b6/ -r
wanglei@coding:
/julia$ mkdir -p julia-593a0229b6/{sbin,bin,etc,lib/julia,share/julia}
wanglei@coding:/julia$ cd julia-593a0229b6/ && ls
bin etc lib sbin share
wanglei@coding:
/julia/julia-593a0229b6$ ls lib/ share/
lib/:
julia

share/:
julia


wanglei@coding:~/julia/julia-593a0229b6$ uname -mpsrv
Linux 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64

@staticfloat
Copy link
Sponsor Member

For some reason, our make subshells aren't interpreting the {a,b,c} syntax properly on Ubuntu. I've submitted a pull request to change this to a for loop, in the meantime, you can manually copy-paste the solution lines into your own Makefile if you wish. Alternatively, you can just manually create the folders as you have been doing.

Also, if you surround your terminal output with three grave marks, it'll be easier to read. (A grave mark is a `)

Thanks for the bug report!

@pao
Copy link
Member

pao commented Oct 23, 2012

The {a,b,c} syntax is a Bash-ism, I think. Ubuntu 12.10 is probably shelling out to dash instead. We're probably best off not using Bash-specific constructs in the Makefile, though there's a way to tell make to use a specific shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants