Giter Club home page Giter Club logo

Comments (13)

clakeb avatar clakeb commented on July 23, 2024

Further, when I installed without the directory argument I got this error before make

clang: error: no such file or directory: 'directory/here/user/.rubies/ruby-2.0.0-p247/lib/libruby.2.0.0.dylib'

When it should have installed in

/Volumes/this\ directory/user/.rubies/ruby-2.0.0-p247/lib/libruby.2.0.0.dylib

I have my home directory (os x) moved to another hard drive and I stupidly put a space in one of the folder names. I could rename and move it but I'm sure it will cause problems. So any help would be appreciated. Why is it not picking up the backslash in the directory tree? I guess this all won't matter in a few days when I fresh install OS X Mavericks but it is frustrating today.

from ruby-install.

havenwood avatar havenwood commented on July 23, 2024

Quotes around the directory name should resolve the ambiguity.

Try: ruby-install -i "/this directory/here" ruby 1.9.3

from ruby-install.

clakeb avatar clakeb commented on July 23, 2024

@havenwood, thanks but same result.

from ruby-install.

havenwood avatar havenwood commented on July 23, 2024

Hrm, I just tested the following on OS X with success:

mkdir "$HOME/hi there"
ruby-install -i "$HOME/hi there" jruby

Can you paste the real path you're installing to?

from ruby-install.

havenwood avatar havenwood commented on July 23, 2024

@clakeb My bad... I'm on head not 0.3.0. Sorry about that!

Both quoting and escaping work on head. Double checked!

There should be a new release in not too long, but in the meanwhile you can: brew install ruby-install --HEAD

from ruby-install.

clakeb avatar clakeb commented on July 23, 2024

@havenwood, thanks!

from ruby-install.

clakeb avatar clakeb commented on July 23, 2024

So I did the same test you did on a different computer (MBA with no screwy directories) with HEAD installed and it seems to be working. Unfortunately, before I left my desktop (mini) I tried to run compile again with HEAD installed and it was not compiling. The full commands I tried on my desktop were ...

$ ruby-install -i "/Volumes/Other\ stuff/cblakebarber/.rbenv/versions/2.0.0-r247" ruby 2.0.0-r247

AND

$ ruby-install -i "/Volumes/Other stuff/cblakebarber/.rbenv/versions/2.0.0-r247" ruby 2.0.0-r247

AND

$ ruby-install -i /Volumes/Other\ stuff/cblakebarber/.rbenv/versions/2.0.0-r247 ruby 2.0.0-r247

AND

$ ruby-install -i /Volumes/Other stuff/cblakebarber/.rbenv/versions/2.0.0-r247 ruby 2.0.0-r247

None of those compiled. But I guess that is fine because that user is on a HDD and I should probably compile it in /usr/local on the SSD (where the applications are).

from ruby-install.

postmodern avatar postmodern commented on July 23, 2024

@clakeb what error messages to those commands produce?

from ruby-install.

clakeb avatar clakeb commented on July 23, 2024

Actually I just got home and am looking at the previous commands that were run on my desktop. Here is the last thing I ran.

$ ruby-install -i "/Volumes/Other stuff/cblakebarber/.rbenv/versions/2.0.0-p247" ruby 2.0.0-p247 -- --enable-shared --with-out-ext=tk --disable-install-doc --with-openssl-dir=/usr/local/opt/openssl

And it configured but did not compile. I am on HEAD and got all the way to make where I got this...

clang: error: no such file or directory: 'stuff/cblakebarber/.rbenv/versions/2.0.0-p247/lib/libruby.2.0.0.dylib'
make: *** [libruby.2.0.0.dylib] Error 1
!!! Compiling ruby 2.0.0-p247 failed!

Where it should be compiling to

/Volumes/Other stuff/cblakebarber/.rbenv/versions/2.0.0-p247/lib/libruby.2.0.0.dylib

There is a lot of cruft on this machine and I got it all sorted on my laptop (and I'll be doing a fresh install of Mavericks in a few days, without a space in the directory) but it still is looking like it isn't finding the right directory based on the space in the name as evidenced from the error that I got above. I'm going to try just escaping to see if it clears it up.

$ ruby-install -i /Volumes/Other\ stuff/cblakebarber/.rbenv/versions/2.0.0-p247 ruby 2.0.0-p247 -- --enable-shared --with-out-ext=tk --disable-install-doc --with-openssl-dir=/usr/local/opt/openssl

P.S. I also got this after the configuration options were run.

>>> Verifying ruby-2.0.0-p247.tar.bz2 ...
>>> Extracting ruby-2.0.0-p247.tar.bz2 ...
>>> Configuring ruby 2.0.0-p247 ...
configure: WARNING: unrecognized options: --with-openssl-dir

from ruby-install.

clakeb avatar clakeb commented on July 23, 2024

Same two errors.

$ ruby-install -i /Volumes/Other\ stuff/cblakebarber/.rbenv/versions/2.0.0-p247 ruby 2.0.0-p247 -- --enable-shared --with-out-ext=tk --disable-install-doc --with-openssl-dir=/usr/local/opt/openssl
>>> Configuring ruby 2.0.0-p247 ...
configure: WARNING: unrecognized options: --with-openssl-dir
clang: error: no such file or directory: 'stuff/cblakebarber/.rbenv/versions/2.0.0-p247/lib/libruby.2.0.0.dylib'
make: *** [libruby.2.0.0.dylib] Error 1
!!! Compiling ruby 2.0.0-p247 failed!

from ruby-install.

postmodern avatar postmodern commented on July 23, 2024

You can ignore the configure warning.

from ruby-install.

postmodern avatar postmodern commented on July 23, 2024

Reproduced this manually on Fedora with gcc:

$ ./configure --prefix="$HOME/foo bar"
....
$ make
....
linking ruby
gcc: error: bar/lib: No such file or directory
gcc: error: bar/lib: No such file or directory
make[2]: *** [ruby] Error 1
make[2]: Leaving directory `/home/hal/src/ruby-2.0.0-p247'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/hal/src/ruby-2.0.0-p247'
make: *** [build-ext] Error 2

from ruby-install.

postmodern avatar postmodern commented on July 23, 2024

http://bugs.ruby-lang.org/issues/9010

from ruby-install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.