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

PREFIX_PATH broken w/ jruby-1.6.4 #30

Closed
jmazzi opened this issue Sep 6, 2011 · 5 comments
Closed

PREFIX_PATH broken w/ jruby-1.6.4 #30

jmazzi opened this issue Sep 6, 2011 · 5 comments

Comments

@jmazzi
Copy link

jmazzi commented Sep 6, 2011

Installed with:

➜  ~  ruby-build jruby-1.6.4 ~/.rbenv/versions/jruby-1.6.4 
Downloading http://jruby.org.s3.amazonaws.com/downloads/1.6.4/jruby-bin-1.6.4.tar.gz...
Installing jruby-1.6.4...
Installed jruby-1.6.4 to /Users/justin/.rbenv/versions
Downloading http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz...
Installing rubygems-1.6.2...
Installed rubygems-1.6.2 to /Users/justin/.rbenv/versions
➜  ~  

The dir is emtpy:

➜  ~  ls -al .rbenv/versions/jruby-1.6.4 
total 0
drwxr-xr-x  2 justin  justin   68 Sep  6 16:29 .
drwxr-xr-x  8 justin  justin  272 Sep  6 16:54 ..

Looks like it's installing it into the ~/.rbenv/versions dir itself :-(

➜  ~  ls -al .rbenv/versions/           
total 0
drwxr-xr-x   8 justin  justin  272 Sep  6 16:54 .
drwxr-xr-x  13 justin  justin  442 Sep  6 16:51 ..
drwxr-xr-x   5 justin  justin  170 Aug 15 14:20 1.8.4
drwxr-xr-x   5 justin  justin  170 Aug 16 08:44 1.8.7-p352
drwxr-xr-x   6 justin  justin  204 Aug 15 13:52 1.9.2-p290
drwxr-xr-x  11 justin  justin  374 Aug 15 13:51 jruby-1.6.3
drwxr-xr-x   2 justin  justin   68 Sep  6 16:29 jruby-1.6.4
drwxr-xr-x  11 justin  justin  374 Aug 19 11:12 rbx-1.2.4
➜  ~  

ruby-build 20110906

@ilja
Copy link

ilja commented Sep 6, 2011

The same thing happens with 1.9.2-p290. ./rbenv/versions1.9.2-p290 is empty and .rbenv/versions contains bin, include, lib and share directories.

versions :: (master*) » ls -l                                                                              ~/.rbenv/versions  
total 0
drwxr-xr-x   6 ilja  staff  204  6 sep 22:56 1.9.2-p290
drwxr-xr-x  10 ilja  staff  340  6 sep 23:10 bin
drwxr-xr-x   4 ilja  staff  136  6 sep 23:10 include
drwxr-xr-x   9 ilja  staff  306  6 sep 23:10 lib
drwxr-xr-x   5 ilja  staff  170  6 sep 23:10 share

@jmazzi
Copy link
Author

jmazzi commented Sep 6, 2011

The offender is https://github.com/sstephenson/ruby-build/blob/master/bin/ruby-build#L9

➜ ~ type -p greadlink readlink| head -n 1
greadlink not found

@jmazzi
Copy link
Author

jmazzi commented Sep 6, 2011

Actually, I'm using zsh. If I use the bash shell (which the script uses) it works fine.

@jmazzi
Copy link
Author

jmazzi commented Sep 6, 2011

I've confirmed that this commit broke it 20f7b5c

@sstephenson
Copy link
Contributor

Thanks all, and sorry for not properly testing the $PREFIX_PATH change. I've reverted it and tagged v20110906.1.

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

3 participants