Skip to main content

Thread: Ubuntu 10.04 zlib installation with RVM issue


i installed rvm on ubuntu 10.04, ruby 1.9.2. , needed gems. proble ruby can't load 'zlib' package.
code:
a187589@ubuntu:~/rails_projects$ cd blog/ a187589@ubuntu:~/rails_projects/blog$ rake db:create rake aborted! /lib/libz.so.1: version `zlib_1.2.3.3' not found (required /home/a187589/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/i686-linux/zlib.so) - /home/a187589/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/i686-linux/zlib.so
i have alreade tried solution proposed on rvm site http://beginrescueend.com/packages/zlib/:
code:
 $ rvm pkg install zlib $ rvm remove 1.9.2 $ rvm install 1.9.2 --with-zlib-dir=$rvm_path/usr
the doubts have had put instead of '$rvm_path/usr' ?
when require 'zlib' in irb:
code:
a187589@ubuntu:~/rails_projects/blog$ irb 1.9.2-p290 :001 > require 'zlib'  => true  1.9.2-p290 :002 >
everything seems ok.

here full stack trace:
code:
a187589@ubuntu:~/rails_projects/blog$ rvm remove 1.9.2 removing /home/a187589/.rvm/src/ruby-1.9.2-p290... removing default ruby interpreter removing /home/a187589/.rvm/rubies/ruby-1.9.2-p290... removing ruby-1.9.2-p290 aliases... removing ruby-1.9.2-p290 wrappers... removing ruby-1.9.2-p290 environments... removing ruby-1.9.2-p290 binaries... a187589@ubuntu:~/rails_projects/blog$ rvm pkg install zlib fetching zlib-1.2.5.tar.gz /home/a187589/.rvm/archives extracting zlib-1.2.5.tar.gz /home/a187589/.rvm/src configuring zlib in /home/a187589/.rvm/src/zlib-1.2.5. compiling zlib in /home/a187589/.rvm/src/zlib-1.2.5. installing zlib /home/a187589/.rvm/usr a187589@ubuntu:~/rails_projects/blog$ rvm install 1.9.2 --with-zlib-dir=/home/a187589/.rvm/usr installing ruby source to: /home/a187589/.rvm/rubies/ruby-1.9.2-p290, may take while depending on cpu(s)...  ruby-1.9.2-p290 - #fetching  ruby-1.9.2-p290 - #extracting ruby-1.9.2-p290 /home/a187589/.rvm/src/ruby-1.9.2-p290 ruby-1.9.2-p290 - #extracted /home/a187589/.rvm/src/ruby-1.9.2-p290 fetching yaml-0.1.4.tar.gz /home/a187589/.rvm/archives extracting yaml-0.1.4.tar.gz /home/a187589/.rvm/src prepare yaml in /home/a187589/.rvm/src/yaml-0.1.4. configuring yaml in /home/a187589/.rvm/src/yaml-0.1.4. compiling yaml in /home/a187589/.rvm/src/yaml-0.1.4. installing yaml /home/a187589/.rvm/usr ruby-1.9.2-p290 - #configuring  ... rest omitted easier reading
so problem, can me, please?
thanks.

fixed. think forgot dollar sign before path zlib folder in line:
code:
$ rvm install 1.9.2 --with-zlib-dir=$/home/a187589/.rvm/usr


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Ubuntu 10.04 zlib installation with RVM issue


Ubuntu

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support