1. load irb
2. execute the following:
require 'rconfig'
p Config::CONFIG["target_os"]
Thanks
If you're curious, I'm porting xrefresh-server to linux (it's on OSX
right now) -- it is for a "windows-only" firefox plugin which will
update a tab containing a website/url when a file which is a dependency
for that url is changed/added/updated.
Thanks again,
Matt
>
> Could someone on OSX do the following for me?
>
> 1. load irb
> 2. execute the following:
> require 'rconfig'
> p Config::CONFIG["target_os"]
mdarby@macbook:~:
irb
>
> require 'rconfig'
LoadError: no such file to load -- rconfig
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from (irb):1
from :0
>> exit
mdarby@macbook:~: ./script/console
Loading development environment (Rails 2.1.0)
>> require 'rconfig'
MissingSourceFile: no such file to load -- rconfig
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:354:in `new_constants_in'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
from (irb):1
>> exit
mdarby@macbook:~: gem install rconfig
ERROR: could not find gem rconfig locally or in a repository
I didn't see it in the gems list.
-Joe
_______________
Joe O'Brien, artisan
EdgeCase
theedgecase.com
On Jul 24, 2008, at 2:06 PM, Matt Williams wrote:
Thanks,
Matt
thanks,
matt
That might not give you all the info you need. For example, the ruby
on Leopard is a universal binary (compare CFLAGS, LDFLAGS, and
target_cpu to the fact that my machine is an Intel Mac).
irb> pp Config::CONFIG.select{|name,value|name=~/target|FLAG/}
[["target", "powerpc-apple-darwin9.0"],
["target_alias", ""],
["XCFLAGS", " -DRUBY_EXPORT"],
["target_vendor", "apple"],
["YFLAGS", ""],
["LDFLAGS", "-L. -arch ppc -arch i386"],
["DLDFLAGS", ""],
["target_cpu", "powerpc"],
["target_os", "darwin9.0"],
["RPATHFLAG", ""],
["ASFLAGS", ""],
["LIBRUBY_DLDFLAGS",
"-install_name /System/Library/Frameworks/Ruby.framework/Versions/
1.8/usr/lib/libruby.1.dylib -current_version 1.8.6 -
compatibility_version 1.8"],
["XLDFLAGS", ""],
["CCDLFLAGS", " -fno-common"],
["CFLAGS", "-arch ppc -arch i386 -Os -pipe -fno-common"],
["LIBPATHFLAG", " -L\"%s\""],
["CPPFLAGS", ""],
["OUTFLAG", "-o "],
["ARCH_FLAG", ""]]
=> nil
-Rob
~Aaron
---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/