Not able to install with setup.rb
johan bjørn
2 posts
|
Hello I posted this under errata first, but I guess this is better place: Setup.rb does not work the way it is supposed to on my computer. After I have run setup.rb I’m still not able to call clash-check.rb from an arbitrary folder. I’m on Mac OS X. I don’t seem to have any site_local folder which is unfortunate since it is mentioned repeatedly. Files seem to be installed in /System/Library/Ruby.framework… In Mac OS X Leopard ruby has been framwork’ized could this have something to do with my problems? This is (most) of the output when I run setup.rb: My loadpath looks like this: But I guess that I’m not going to be able to run clash-check.rb from an arbitrary folder before /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ is put into my loadpath? I have tried adding it to my .profile file like this: —Johan Bjørn |
Brian Marick
27 posts
|
Sorry for the delayed reply. You’re right – the instructions are incomplete for OS X Leopard. When you run setup.rb, it puts the executables in a ruby-specific folder. You have to make symbolic links from /usr/bin to that folder. Like this: sudo ln -s /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/clash-check.rb /usr/bin/clash-check.rb Once you’ve done that, it works: $ ruby -S clash-check.rb csv Note that you don’t need to use the -S on Unix systems (like MacOSX). You can run the script directly: $ clash-check.rb csv If you don’t like messing with /usr/bin, you can put the Ruby-specific executable directory into your $PATH (not RUBYLIB). Like this: export PATH=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin:$PATH That’s probably wisest – less chance later OSX upgrades will erase the symbolic link. |
johan bjørn
2 posts
|
Thanks Brian I chose solution number two, as you suggested, and that worked :) Best Regards, Johan BJørn |
3 posts, 2 voices
