[Locomotive-users] Using Locomotive Ruby install as system (Mac OS X) default Ruby install

Mark mark at thejavapros.net
Sat Apr 7 21:12:45 GMT 2007


I launch a terminal from Locomotive and try to execute a simple ruby script
using active_record and it can't find the gem.

Any ideas?:
CODE:
require "active_record" 
ActiveRecord::Base.establish_connection(:adapter => "mysql", 
:username => "root", 
:password => "", 
:database => "depot_development", 
:host => "localhost") 
 
class SomeTable < ActiveRecord::Base 
 
end 

RESULT:
peshawar:~/rubystuff/code mark$ ruby tdb.rb 
tdb.rb:1:in `require': no such file to load -- active_record (LoadError) 
from tdb.rb:1 
peshawar:~/rubystuff/code mark$ set 
BASH=/bin/bash 
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release"
[5]="powerpc-apple-darwin8.0") 
BASH_VERSION='2.05b.0(1)-release' 
CFLAGS=
-I/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/include

COLUMNS=101 
CPPFLAGS=
-I/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/include

CXXFLAGS=
-I/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/include

DIRSTACK=() 
DYLD_FALLBACK_LIBRARY_PATH=
/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/lib:/usr/lib

EUID=502 
GROUPS=() 
HISTFILE=/Users/mark/.bash_history 
HISTFILESIZE=500 
HISTSIZE=500 
HOME=/Users/mark 
HOSTNAME=peshawar.local 
HOSTTYPE=powerpc 
IFS=$' \t\n' 
LDFLAGS='-L/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/lib
-headerpad_max_install_names' 
LINES=46 
LOCOMOTIVE_VERSION=2.0.8 
LOGNAME=mark 
MACHTYPE=powerpc-apple-darwin8.0 
MAILCHECK=60 
OLDPWD=/Users/mark/rubystuff 
OPTERR=1 
OPTIND=1 
OSTYPE=darwin8.0 
PATH=/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/bin:
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/powerpc/sbin:
/Users/mark/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:

PIPESTATUS=([0]="1") 
PPID=9887 
PS1='\h:\w \u\$ ' 
PS2='> ' 
PS4='+ ' 
PWD=/Users/mark/rubystuff/code 
RUBYLIB=
/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/lib/ruby/site_ruby/1.8:
/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/lib/ruby/site_ruby/1.8/powerpc-darwin7.9.0:
/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/lib/ruby/1.8
:/Applications/Locomotive2/Bundles/standardRailsJan2007.
locobundle/powerpc/lib/ruby/1.8/powerpc-darwin7.9.0

SECURITYSESSIONID=508b10 
SHELL=/bin/bash 
 
SHLVL=1 
TERM=xterm-color 
TERM_PROGRAM=Apple_Terminal 
TERM_PROGRAM_VERSION=133 
UID=502 
USER=mark 
_=tdb.rb 
__CF_USER_TEXT_ENCODING=0x1F6:0:0 
peshawar:~/rubystuff/code mark$




More information about the Locomotive-users mailing list