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

Mac OSX installation problem #770

Closed
bwanab opened this issue Oct 31, 2018 · 5 comments
Closed

Mac OSX installation problem #770

bwanab opened this issue Oct 31, 2018 · 5 comments

Comments

@bwanab
Copy link

bwanab commented Oct 31, 2018

When I do Pkg.build("IJulia") I get the following error:

│ ERROR: did not recognize option 'HD/Users/bill/.julia/conda/3', please try -h
│ [ Info: Installing Jupyter via the Conda package.
│ [ Info: Downloading miniconda installer ...
│ [ Info: Installing miniconda ...
│ ERROR: LoadError: failed process: Process('/Volumes/Macintosh HD/Users/bill/.julia/conda/3/installer.sh' -b -f -p '/Volumes/Macintosh HD/Users/bill/.julia/conda/3', ProcessExited(1)) [1]

It seems clear by the error message that it has trouble with the fact that the volume name Macintosh HD has a space in it. The suggestion to use -h is problematic since I have no idea where the -h would go in the command Pkg.build("IJulia"). Any ideas?

@stevengj
Copy link
Member

stevengj commented Nov 5, 2018

Ouch, this seems like a bug in Anaconda's installer.sh script. (Mishandling paths with spaces is a perennial problem with shell scripts.)

(Conda.jl is passing the path correctly as a single argument, because Julia executes programs directly with fork rather than via the shell, so I think this not "our" fault.)

(The suggestion -h is irrelevant, I think—it is just suggesting that you consult the help.)

@stevengj
Copy link
Member

stevengj commented Nov 5, 2018

The right thing to do is to first reproduce the problem without using Julia, and then file a bug with Anaconda.

Steps to reproduce:

  1. Download the Miniconda installer: https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh

  2. Run it in the Terminal:

sh Miniconda3-latest-MacOSX-x86_64.sh -b -f -p /some/path/with/space

@stevengj
Copy link
Member

stevengj commented Nov 5, 2018

Actually, it seems it has already been reported: ContinuumIO/anaconda-issues#716

@stevengj
Copy link
Member

stevengj commented Nov 5, 2018

Closing as a duplicate of that anaconda issue.

In the meantime, the workaround is not to use a path with spaces. (On my MacOS X box, the user home directory is simply /Users/username … under what circumstances does the home directory name include the name of the drive?)

@stevengj stevengj closed this as completed Nov 5, 2018
@bwanab
Copy link
Author

bwanab commented Nov 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants