search for: rbconfig

Displaying 20 results from an estimated 45 matches for "rbconfig".

2012 Apr 07
5
FFI and msvcrt
...ve been using FFI with a Ruby 1.9.3 built with MSVC++ and it''s been working well. One thing I''ve run into though is this: ffi_lib :msvcrt But that''s not the runtime I want. But I don''t want to hard code the runtime name either. I realize I could parse it out of RbConfig, but I was hoping for something nicer. Is there a way we could create an analogue to FFI::Library::LIBC for the MSVC runtime? Something like FFI::Library::MSVCRT ? Regards, Dan
2014 Jan 16
1
[PATCH] hivex: ruby: Support 'make INSTALLDIRS=vendor install' for Ruby
...efile.am | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ruby/Makefile.am b/ruby/Makefile.am index e78ab59..7a5fe42 100644 --- a/ruby/Makefile.am +++ b/ruby/Makefile.am @@ -45,13 +45,17 @@ all: $(RAKE) build $(RAKE) rdoc -RUBY_SITELIB := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']") -RUBY_SITEARCH := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['sitearchdir']") +# Packagers can override this by doing: make INSTALLDIRS=vendor install +# INSTALLDIRS also affects where Perl bindings are installe...
2006 Apr 20
4
oci8 mac os x intel
Is rails + oci8 + mac os x intel a winning combination? It appears that oci8 might be a issue.
2011 Nov 25
6
Use RbConfig instead of obsolete and deprecated Config
Hi everyone, since my last gem update, I get the following error when using webgen: /home/dams/opt/ruby/gems/webgen-0.5.14/lib/webgen/cli/utils.rb:10: Use RbConfig instead of obsolete and deprecated Config. /usr/lib/ruby/1.9.1/psych.rb:154:in `parse'': (<unknown>): couldn''t parse YAML at line 21 column 9 (Psych::SyntaxError) from /usr/libb/ruby/1.9.1/psych.rb:154:in `parse_stream'' from /usr/lib/ruby/1.9.1/psych.rb:125:in `parse...
2007 Jan 21
2
Help with Installation on OpenSolaris (TextDrive Containers)
Gents, I installed ferret successfully in my MacOS (rails development) using the gem install. I did some tests and everything worked fine. Then I tried to install it on the same way on my production environment at TextDrive? running OpenSolaris? (container). This time ''gem install ferret'' seems to be completed: [92140-AA:~/web/labs/blogblogs/trunk] root# gem install ferret
2014 Nov 06
3
[PATCH 0/2] hivex: small portability fixes
Hi, this small series cherry-picks a couple of the portability fixes recently done in libguestfs to hivex. There should be no actual change on Linux. Thanks, -- Pino Pino Toscano (2): normalize iconv handling ruby: fix detection of ruby library bootstrap | 1 + configure.ac | 8 +++++++- lib/utf16.c | 3 +-- 3 files changed, 9 insertions(+), 3 deletions(-) -- 1.9.3
2006 May 06
3
[BUMP] conditional require? conditional action code?
Greetings all. I have some controller code that uses win32ole (only available on windows). This code is now solid, and I''d now like to resume development on (any) other OS(grin). But alas, the controller bails because the OS specific library can''t be found. Can I conditionally specify action code compilation (and a require ''win32ole'') based on OS or
2010 Apr 21
0
can't seem to install bleak house
...amic main.o -lruby-static -lrt -ldl -lcrypt -lm -lpthread -lrt -ldl - lcrypt -lm -o ruby make[1]: Leaving directory `/tmp/bleak_house/ruby-1.8.7-p174'' -%{ BUILDING SNAPSHOT }%- build_snapshot.rb:1: warning: already initialized constant RUBY_VERSION /usr/local/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb:7: ruby lib version (1.9.1) doesn''t match executable version (1.9.1p376) (RuntimeError) from /usr/local/lib/ruby/1.9.1/mkmf.rb:4:in `require'' from /usr/local/lib/ruby/1.9.1/mkmf.rb:4 from build_snapshot.rb:2:in `require'' from build_snaps...
2012 Jun 29
4
[PATCH libguestfs 0/3] Fix configure script detection of Ruby.
These three patches ought to fix configure script detection of Ruby, especially on Debian where the Ruby C extensions library can be something like '-lruby1.8'. Rich.
2012 Oct 04
0
Announce: Facter 1.6.13 Available
...nfig was called on systems with Ib interfaces, it would echo direcly to STDERR. This commit suppresses ifconfig STDERR messages. Improve rubysitedir fact With ruby-1.9.3 -- at least on Fedora 17 -- trawling through the library paths looking for the directory does not work. Using RbConfig seems more reliable and much simpler. (#5205) Update facter manpage This commit doesn''t handle the request in the ticket of dynamically generated manpage, but it does update the man page to have updated flags and help, correct license, copyright holder and copyright year....
2007 Dec 28
3
Cannot install wxruby on Leopard
I''d like to try wxruby on my MacBook Pro with Leopard (10.5.1) But I have troubles with gem. I can see the gem is in rubyforge: $ gem list wxruby -r *** REMOTE GEMS *** wxruby (1.9.2, 1.9.1, 1.9.0) wxrubylayouts (0.0.3, 0.0.2, 0.0.1) but when I try to install it: $ sudo gem install wxruby -r Password: ERROR: could not find wxruby locally or in a repository Any suggestion? Thanks
2014 Nov 06
0
[PATCH 2/2] ruby: fix detection of ruby library
Query RbConfig::CONFIG for "libdir", and use that when trying to link to the ruby library. This fixes the libruby detection when it is installed in a non-standard library directory. (This is the same change as 3d02e53c48266669675cc237f61ae2c4e1816e66 in libguestfs.) --- configure.ac | 8 +++++++- 1 f...
2015 Feb 06
0
Re: Patchable build problems on OS X 10.10
...org/software/gnulib/ [...] > diff --git ruby/Makefile.am ruby/Makefile.am > index f605188..d28d77b 100644 > --- ruby/Makefile.am > +++ ruby/Makefile.am > @@ -21,6 +21,8 @@ generator_built = \ > ext/guestfs/_guestfs.c \ > bindtests.rb > > +DLEXT := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['DLEXT']") > + > EXTRA_DIST = \ > $(generator_built) \ > Rakefile.in \ > @@ -38,7 +40,7 @@ CLEANFILES = \ > ext/guestfs/*~ \ > ext/guestfs/extconf.h \ > ext/guestfs/_guestfs.o \ > - ext/guestfs/_guestfs.so \ > + ex...
2007 Jul 02
1
Problems about installing ruby from source on linux
...istribution and I can find it in [ruby_sourc_path]/ ext/zlib, but it seems that it wasn''t installed into /usr/local/ruby as I expected. I found a file called extmk.rb in [ruby_source_path]/ext and thought this could help. So I tried to run ruby extmk.rb, but it said that cannot load "rbconfig". There is an aritcle on the internet saying that I can run extconf.rb in [ruby_sourc_path]/ext/zlib and then do a make && make install. This works for me, but before I can run extconf.rb, I must install zlib-1.2.3 manually. Another problems is that the above approach can only instal...
2006 Feb 10
15
"Ruby for Rails" in early access release
Hi -- My book "Ruby for Rails" is now being released one chapter at a time through the Manning Early Access Program, with the whole book due to appear on May 1. If you''re interested, see http://www.manning.com/books/black (I guess I could have just sent my sig with no body, but anyway :-) David -- David A. Black (dblack@wobblini.net) Ruby Power and Light
2013 Oct 28
1
Using puppetlabs_spec_helper on Windows 7
...ws 7 to test my Puppet modules. Is this supported ? Because I encountered some problems: 1. symlinks were not created on Windows 7 (even if the functionnality are availabe). To manage that I added to rake_tasks.rb an ugly function: def make_link(source,target) ruby_platform = RbConfig::CONFIG[''host_os''] if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ then #Windows Stuff source_win=source.tr("/","\\") target_win=target.tr("/","\\") `call mklink /D #{target_win} #{source_win}` elsif RUBY_PLATF...
2011 Dec 15
6
Puppet with Ruby1.9 issue
Hi, I have a running puppetmaster with nginx and passenger and ruby 1.9.2. When i do puppet cert --trace --list . i get the following error. /usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application/ cert.rb:43:in `block (2 levels) in <class:Cert>'' /usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/application.rb: 357:in `block (2 levels) in parse_options''
2015 Feb 05
4
Patchable build problems on OS X 10.10
Hello, I'm attempting to create a Homebrew formula to get libguestfs to compile on Mac OS X. I've managed to achieve success with several monkey patches, but since Homebrew's policy is to contact maintainers about proper fixes in upstream, I would like to ask if there are any plans to fix these issues. I'm afraid I don't know C well enough to propose decent solutions myself.
2012 Feb 10
3
Installing from source missing -lruby18 in linking.
I am trying to build wxruby from source, but I have encounter an error. For some reason the ''rake'' command fail when it tries to link lib/wxruby2.so because it is missing missing -lruby18 resulting in errors like wx.cpp:(.text+0x1618): undefined reference to `rb_intern'' wx.cpp:(.text+0x165c): undefined reference to `rb_eNotImpError'' wx.cpp:(.text+0x1666):
2006 Jan 21
19
RoR - Mac OS 10.4.4 on Intel
I got a new 20 inch iMac dual core today and am busy getting it all setup. A couple of issues though: 1. Is the Ruby 1.8.2 install by Apple still botched or has that been fixed? I recall someone had fixed the rbconfig.rb to get it working. Is this something I still have to do? 2. Does anyone know if Locomotive is using the uniersal binaries, or is it targetting PPC yet? I couldn''t find anything on their site yet in regards to universal binaries. Thanks! -Mark -- Posted via http://www.ruby-forum....