it looks like you either installed rvm as root or are running it as
such... I'm not sure exactly.

either way. you shouldnt have to involve "usr/bin" in anything. all
your commands should be directly from your home user directory.
done that way, rvm will then install a version of ruby for you right
in your ~/.rvm directory. after rvm is correctly installed you should
never see gem trying to use /Library system gems.

after you install rvm it should give tell you how to set up your
terminal to run it when you open it. rvm provies instructions for this
but it generally involves adding the following line to
your .bash_profile file

if [[ -s ~/.rvm/scripts/rvm ]] ; then source ~/.rvm/scripts/rvm ; fi

after that you probably should close your terminal and reopen it...

then from your user home directory in terminal, run "rvm install
ruby-1.8.7-p299" after that you'll need to set it as the default ruby
for new shells.. i believe the command is
rvm 1.8.7 --default

now that your environment is set up correctly.. try

gem install rails --pre

it should install your gems into your local .rvm folder under the
version of ruby you installed.
let me know how that goes.

On Jun 25, 3:15 am, Andre Cubeta <li...@ruby-forum.com> wrote:
> frankjmat...@gmail.com wrote:
> > Also I should have noted, after you get rails installed and run
> > rails new MyNewAppName you should cd to that directory and run
> > bundle install
> > that will install all of your gem dependencies from your Gemfile and
> > you shouldn't get that sqlite3-ruby error anymore.
>
> > On Jun 25, 1:00 am, "frankjmat...@gmail.com" <frankjmat...@gmail.com>
>
> Hi Frank,
>
> Thank for the help, i really wanted this one to get up straight.  I
> tried the instructions fromhttp://rvm.beginrescueend.com/rvm/install/
> and it works fine.  I keep on turning around "/usr/bin/rvm install" but
> no record so i tried "usr/bin/rvm-install ruby-1.8.7-p299" and it did
> work.  :) thanks for tha.  No i tried to get into my "rails3sample" app
> directory and run the command:  bundle install  and yet another errors
> coming up. (kindly check below) seems like i have
> sqlite3 gem missing or something somewhere => "checking for
> sqlite3_libversion_number() in -lsqlite3... no"
>
> Using rake (0.8.7) from system gems
> Using abstract (1.0.0) from system gems
> Using activesupport (3.0.0.beta4) from system gems
> Using builder (2.1.2) from system gems
> Using i18n (0.4.1) from system gems
> Using activemodel (3.0.0.beta4) from system gems
> Using erubis (2.6.5) from system gems
> Using rack (1.1.0) from system gems
> Using rack-mount (0.6.6) from system gems
> Using rack-test (0.5.4) from system gems
> Using tzinfo (0.3.22) from system gems
> Using actionpack (3.0.0.beta4) from system gems
> Using mime-types (1.16) from system gems
> Using polyglot (0.3.1) from system gems
> Using treetop (1.4.8) from system gems
> Using mail (2.2.5) from system gems
> Using actionmailer (3.0.0.beta4) from system gems
> Using arel (0.4.0) from system gems
> Using activerecord (3.0.0.beta4) from system gems
> Using activeresource (3.0.0.beta4) from system gems
> Using bundler (0.9.26) from system gems
> Using thor (0.13.6) from system gems
> Using railties (3.0.0.beta4) from system gems
> Using rails (3.0.0.beta4) from system gems
> Installing sqlite3-ruby (1.3.0) from .gem files at
> /Users/andre/.bundle/ruby/1.8/cache with native extensions
> /Library/Ruby/Site/1.8/rubygems/installer.rb:483:in `build_extensions':
> ERROR: Failed to build gem native extension.
> (Gem::Installer::ExtensionBuildError)
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
> extconf.rb
> checking for sqlite3.h... yes
> checking for sqlite3_libversion_number() in -lsqlite3... no
> sqlite3 is missing. Try 'port install sqlite3 +universal' or 'yum
> install sqlite3-devel'
> *** 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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
>   --with-sqlite3-dir
>   --without-sqlite3-dir
>   --with-sqlite3-include
>   --without-sqlite3-include=${sqlite3-dir}/include
>   --with-sqlite3-lib
>   --without-sqlite3-lib=${sqlite3-dir}/lib
>   --with-sqlite3lib
>   --without-sqlite3lib
>
> Gem files will remain installed in
> /Users/andre/.bundle/ruby/1.8/gems/sqlite3-ruby-1.3.0 for inspection.
> Results logged to
> /Users/andre/.bundle/ruby/1.8/gems/sqlite3-ruby-1.3.0/ext/sqlite3/gem_make. 
> out
>   from /Library/Ruby/Site/1.8/rubygems/installer.rb:446:in `each'
>   from /Library/Ruby/Site/1.8/rubygems/installer.rb:446:in
> `build_extensions'
>   from /Library/Ruby/Site/1.8/rubygems/installer.rb:198:in `install'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/source.rb:170:in
> `install'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/installer.rb:34:in
> `run'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/spec_set.rb:12:in
> `each'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/spec_set.rb:12:in
> `each'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/installer.rb:21:in
> `run'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/installer.rb:6:in
> `install'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/cli.rb:91:in
> `install'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/task.rb: 
> 33:in
> `send'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/task.rb: 
> 33:in
> `run'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/invocati 
> on.rb:109:in
> `invoke'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/invocati 
> on.rb:116:in
> `call'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/invocati 
> on.rb:116:in
> `invoke'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor.rb:137:i n
> `start'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/base.rb: 
> 378:in
> `start'
>   from
> /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor.rb:124:i n
> `start'
>   from /Library/Ruby/Gems/1.8/gems/bundler-0.9.26/bin/bundle:13
>   from /usr/bin/bundle:19:in `load'
>   from /usr/bin/bundle:19
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to