Ubuntu rails install fails on zlib

前端 未结 13 2051
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 11:09

I\'ve just moved over to Ubuntu 8.10 as my dev box; it\'s my first serious foray into Linux as a daily-use OS, and I\'m having a hard time getting Rails going. I have follo

相关标签:
13条回答
  • 2020-12-12 11:34

    You could try to download the ruby enterprise deb package on the phusion site. And install passenger through the package. Follow the instructions here. Or you could try the bash script found here.

    0 讨论(0)
  • 2020-12-12 11:37

    Just goto Ruby Source Package , Unzip it.

    Goto /your-ruby-dir/ext/zlib

    ruby extconf.rb
    make
    sudo make install
    

    If the packages are missing it will tell you, mainly libzlib related packages

    Regards

    Saurabh

    0 讨论(0)
  • 2020-12-12 11:44

    I really didn't like any of these answers ... none really focused on the users actual needs and question ... just people telling what they did ... no context and it didn't even work for me ...

    So, ..

    I'm installing a new box Ubuntu 8.04 LTS 64-bit ...

    So, I ...

    cd ~  
    wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz  
    tar -xvvf ruby-1.9.2-p180.tar.gz  
    cd ruby-*  
    ./configure  
    make  
    install  
    sudo make install  
    

    And then I have this problem with ...

    gem list
    

    it doesn't work ... something about zLib not found crap ...

    So, I actually READ the README and find that I need to edit a file ...

    [my ruby source directory]/ext/Setup
    

    and UN-COMMENT the line with zLib in it ... by removing the "#" in the first column

    Then I run the commands again ... included here for reference ...

    ./configure
    make  
    install  
    sudo make install  
    

    and all is well ... it's logical ... and is devoid of "rvm" and other ... "just install more stuff to make it work" type solutions.

    Joet

    0 讨论(0)
  • 2020-12-12 11:44

    yes, and that didn't do the job either. Got this from another source, this finally did it for me where the other stuff failed.

    wget http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.6.0.tar.gz
    tar xvzf ruby-zlib-0.6.0.tar.gz
    cd ruby-zlib-0.6.0
    ruby extconf.rb && make
    sudo make install
    

    Reinstall ruby gems from source

    Thanks anyway, guys.

    0 讨论(0)
  • 2020-12-12 11:47

    If you come across this question trying to install Ruby using Ruby Version Manager (RVM) on Ubuntu 10.04 then there are instructions on installing zlib on the rvm web site http://rvm.beginrescueend.com/packages/zlib/

    The steps are:

    rvm pkg install zlib
    

    (or rvm package install zlib if you get "ERROR: Unrecognized command line argument: 'pkg'" - older versions of rvm used the verb 'package' instead)

    then

    rvm remove 1.9.1
    rvm install 1.9.1
    
    0 讨论(0)
  • 2020-12-12 11:52

    Did you try apt-get install libzlib-ruby?

    Also install rubygems from rubyforge. I don't like the rubygems package in Ubuntu.

    0 讨论(0)
提交回复
热议问题