I am trying to install ruby 1.9.2 p0 and 1.9.2 rc2 version on redhat linux4 under x86 architecture while compiling the source code I am
getting following errors and compilation was not successfull
First one is
installing binary commands: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/bin
installing base libraries: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib
installing arch files: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/1.9.1/x86_64-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/1.9.1/x86_64-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/site_ruby/1.9.1/x86_64-linux
installing extension objects: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
installing extension headers: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/include/ruby-1.9.1/x86_64-linux
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/1.9.1
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/site_ruby/1.9.1
installing extension scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/vendor_ruby/1.9.1
installing extension headers: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/include/ruby-1.9.1/ruby
installing rdoc: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/share/ri/1.9.1/system
installing capi-docs: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/share/doc/ruby
installing command scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/bin
installing library scripts: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/1.9.1
installing common headers: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/include/ruby-1.9.1
installing manpages: TOOLROOT/ruby/ruby/1.9.2/common/man/man1
installing default gems: TOOLROOT/ruby/ruby/1.9.2/rhe4-x86_64/lib/ruby/gems/1.9.1 (cache,
doc, gems, specifications)
rake 0.8.7
rdoc 2.5.8
minitest 1.6.0
tmk: Setting permissions on '/scratch/ravnay01/tmp_ruby_ruby_1.9.2/TOOLROOT/ruby/ruby/1.9.2/
rhe4-x86_64'
chmod 775 .
find rhe4-x86_64 -type d -print | xargs chmod a+x
chmod: cannot access rhe4-x86_64/share/ri/1.9.1/system/Set/dig': No such file or directory chmod: cannot access =': No such file or directory
chmod: cannot access {}': No such file or directory chmod: cannot access rhe4-x86_64/share/ri/1.9.1/system/IRB/(MagicFile': No such file or director
y
chmod: cannot access =': No such file or directory chmod: cannot access Object.new)': No such file or directory
tmk: child process exited abnormally
tmk: tmk: exiting.
tmk: exiting.
second one
If try to run executable file which is there in bin directory I am getting following error..
./ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file: No such file or directory
=end
At Wed, 22 Dec 2010 21:21:17 +0900,
ravish nayak wrote in [ruby-core:33814]:
tmk: Setting permissions on '/scratch/ravnay01/tmp_ruby_ruby_1.9.2/TOOLROOT/ruby/ruby/1.9.2/
rhe4-x86_64'
chmod 775 .
find rhe4-x86_64 -type d -print | xargs chmod a+x
chmod: cannot access rhe4-x86_64/share/ri/1.9.1/system/Set/dig': No such file or directory chmod: cannot access =': No such file or directory
chmod: cannot access {}': No such file or directory chmod: cannot access rhe4-x86_64/share/ri/1.9.1/system/IRB/(MagicFile': No such file or directory
chmod: cannot access =': No such file or directory chmod: cannot access Object.new)': No such file or directory
This bug has been fixed in the trunk already and backported to 1.9.2
branch.
BTW, why don't you use -print0?
$ find rhe4-x86_64 -type d -print0 | xargs -0 chmod a+x
or
$ find rhe4-x86_64 -type d -exec xargs chmod a+x {} +
or
$ chmod -R a+X rhe4-x86_64
second one
./ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file: No such file or directory
Seems like you need to add a file under /etc/ld.so.conf.d or set
LD_LIBRARY_PATH environment variable.
Can I get the URL link or Bug ID that you have mentioned in the above reply i.e "This bug has been fixed in the trunk already and backported to 1.9.2 branch."
I tried with chmod -R a+X rhe4-x86_64 as you suggested.. and again I rebuilt I did not get any error..
In the ruby bin path I tried to run as ./irb it is telling ./irb: Command not found.
I am new to this ruby installation can you suggest me the steps i.e
a) After installing ruby do I need to install rails, rake and gems? Is this is the procedure?
At Thu, 23 Dec 2010 16:35:52 +0900,
ravish nayak wrote in [ruby-core:33830]:
Can I get the URL link or Bug ID that you have mentioned in the
above reply i.e "This bug has been fixed in the trunk already and
backported to 1.9.2 branch."
In the ruby bin path I tried to run as ./irb it is telling ./irb:
Command not found.
Does `./ruby -v' work?
I am new to this ruby installation can you suggest me the steps i.e
a) After installing ruby do I need to install rails, rake and
gems? Is this is the procedure?
Ruby 1.9.2 bundles rake and gems, but rails is a different product.