cannot install

74 views
Skip to first unread message

May May

unread,
Nov 9, 2012, 6:06:36 AM11/9/12
to ubiquo...@googlegroups.com
ubuntu:~/dragon/myapp$ rake ubiquo:db:init
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
Couldn't drop myapp_development : #<MissingSourceFile: no such file to load -- mysql>
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql

Tasks: TOP => ubiquo:db:recreate => db:create
(See full trace by running task with --trace)

what i did:
use the following in gem file instead of the original one
gem 'ruby-debug19', :require => 'ruby-debug'

but still doesnt work...

May May

unread,
Nov 9, 2012, 6:13:35 AM11/9/12
to ubiquo...@googlegroups.com
I changed the debug in gem because when i tried bundle install, it prompts

Installing linecache (0.46) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby 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=/usr/local/bin/ruby


Gem files will remain installed in /home/ubuntu/.bundler/tmp/10824/gems/linecache-0.46 for inspection.
Results logged to /home/ubuntu/.bundler/tmp/10824/gems/linecache-0.46/ext/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.

Bernat

unread,
Nov 9, 2012, 2:06:12 PM11/9/12
to ubiquo...@googlegroups.com
Hi May,

I think the problem is that you are using ruby 1.9. Ubiquo 0.8 only supports ruby 1.8. If you have rvm or similar try using 1.8.7

Bernat
Reply all
Reply to author
Forward
0 new messages