Menu

Step12

Help
Omar Hosny
2014-11-11
2014-11-21
  • Omar Hosny

    Omar Hosny - 2014-11-11

    Dear all,

    I have a problem in step 12..

    when I type the command rake db:create RAILS_ENV=production , it gives me the below error:

    Could not find linecache-0.46 in any of the sources
    Try running bundle install.

    and when type the command bundle install the below error shows up:

    Fetching gem metadata from http://rubygems.org/..........
    Using rake 0.8.7
    Using Ascii85 1.0.1
    Using abstract 1.0.0
    Using activesupport 3.0.3
    Using builder 2.1.2
    Using i18n 0.6.0
    Using activemodel 3.0.3
    Using erubis 2.6.6
    Using rack 1.2.5
    Using rack-mount 0.6.14
    Using rack-test 0.5.7
    Using tzinfo 0.3.33
    Using actionpack 3.0.3
    Using mime-types 1.18
    Using polyglot 0.3.3
    Using treetop 1.4.10
    Using mail 2.2.19
    Using actionmailer 3.0.3
    Using arel 2.0.10
    Using activerecord 3.0.3
    Using activeresource 3.0.3
    Using acts_as_tree 0.2.0
    Using authlogic 2.1.6
    Using cocaine 0.2.1
    Using columnize 0.3.6
    Using declarative_authorization 0.5.2
    Using rbx-require-relative 0.0.9

    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/qtopia/.rvm/rubies/ruby-2.1.4/bin/ruby -r ./siteconf20141111-15741-1ij4c83.rb extconf.rb
    

    Can't handle 1.9.x yet
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of necessary
    libraries and/or headers. Check the mkmf.log file for more details. You may
    need configuration options.

    Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/qtopia/.rvm/rubies/ruby-2.1.4/bin/ruby

    extconf failed, exit code 1

    Gem files will remain installed in /home/qtopia/.rvm/gems/ruby-2.1.4/gems/linecache-0.46 for inspection.
    Results logged to /home/qtopia/.rvm/gems/ruby-2.1.4/extensions/x86-linux/2.1.0/linecache-0.46/gem_make.out
    An error occurred while installing linecache (0.46), and Bundler cannot continue.
    Make sure that gem install linecache -v '0.46' succeeds before bundling.

    I also typed the command gem install lincache -v 0.46 but it reply also with the below error:

    Could not create Makefile due to some reason, probably lack of necessary
    libraries and/or headers. Check the mkmf.log file for more details. You may
    need configuration options.

    My Questions:

    1-On which directory should I run these commands? (the pdf doesn't show me)
    2-Is there is a problem with mysql installation?? cuz the step 12 assuming that I had installed and CONFIGURED mysql correctly.. please help me in that cuz my journey to step 12 wasn't that easy :)

    thanks in advance,
    Omar.
    IT administrator.

     
  • PIT Solutions

    PIT Solutions - 2014-11-21

    VirtualX is based on ruby 1.8.7 and it seems that you are trying to install associated gems based on ruby 2.1.4. if you have already installed ruby 1.8.7 then use the command ‘rvm use 1.8.7’ and proceed further. These commands can be run from any directory. If you have not set ruby 1.8.7 as the default ruby then you have to use the above command and execute it. We believe it will fix the issue you have raised.

     

Log in to post a comment.

MongoDB Logo MongoDB