bundle install / update: libv8 (therubyracer) installation fails (with native extensions)

后端 未结 7 600
清酒与你
清酒与你 2020-12-01 06:29

I recently wanted to update my gem bundle but ran into installation problems with libv8 (requirement for therubyracer):

Installing libv8 (3.3.10.3) with native ext         


        
7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 07:04

    Ubuntu 11.04

    gem "therubyracer", '0.11.1'
    gem 'libv8'
    
    1. Uninstall therubyracer and libv8 gem

    2. Update the bundler gem version

    3. Install lib8-dev package

      sudo apt-get install libv8-dev

    4. Then run this

      sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion imagemagick graphicsmagick libmagickcore-dev libmagickwand-dev

    5. Now install therubyracer manually

      gem install therubyracer

    6. It will install therubyracer and libv8 for you.

    7. Now run bundle install

    All above steps solved my problem :)

提交回复
热议问题