What about adding these configure option, so plruby.so doesn’t need libruby.so at all? But sorry, I’m still not sure how to modify
extconf.rb to accomplish this. In the Makefile I just replace LIBS=
$(LIBRUBYARG_SHARED) with $(LIBRUBYARG_STATIC).
What about adding these configure option, so plruby.so doesn't need
libruby.so at all? But sorry, I'm still not sure how to modify
extconf.rb to accomplish this. In the Makefile I just replace LIBS=
$(LIBRUBYARG_SHARED) with $(LIBRUBYARG_STATIC).
What is your version of plruby and ruby ?
svg% ruby extconf.rb --with-pgsql-dir=$HOME/local/pgsql
checking for ruby_init() in -lruby-static... yes
checking for catalog/pg_proc.h... yes
checking for PQsetdbLogin() in -lpq... yes
checking for rb_hash_delete()... yes
checking for server/utils/array.h... yes
creating Makefile
···
========================================================================
After the installation use something like this to create the language
plruby
create function plruby_call_handler() returns language_handler
as '/usr/local/lib/ruby/site_ruby/1.8/i686-linux/plruby.so'
language 'C';
create trusted language 'plruby'
handler plruby_call_handler
lancompiler 'PL/Ruby';
What about adding these configure option, so plruby.so doesn't need
libruby.so at all? But sorry, I'm still not sure how to modify
extconf.rb to accomplish this. In the Makefile I just replace LIBS=
$(LIBRUBYARG_SHARED) with $(LIBRUBYARG_STATIC).
What about adding these configure option, so plruby.so doesn’t need
libruby.so at all? But sorry, I’m still not sure how to modify
extconf.rb to accomplish this. In the Makefile I just replace LIBS=
$(LIBRUBYARG_SHARED) with $(LIBRUBYARG_STATIC).
$ ruby -v extconf.rb --with-pgsql-include=/usr/include/pgsql
ruby 1.8.1 (2004-01-01) [i686-linux-gnu]
checking for ruby_init() in -lruby-static… yes
checking for catalog/pg_proc.h… yes
checking for PQsetdbLogin() in -lpq… yes
checking for rb_hash_delete()… yes
checking for server/utils/array.h… yes
creating Makefile
···
========================================================================
After the installation use something like this to create the language
plruby
create function plruby_call_handler() returns language_handler
as '/usr/lib/ruby/site_ruby/1.8/i686-linux-gnu/plruby.so'
language 'C';
create trusted language 'plruby'
handler plruby_call_handler
lancompiler 'PL/Ruby';
“D” == David Garamond lists@zara.6.isreserved.com writes:
What about adding these configure option, so plruby.so doesn’t need
libruby.so at all? But sorry, I’m still not sure how to modify
extconf.rb to accomplish this. In the Makefile I just replace LIBS=
$(LIBRUBYARG_SHARED) with $(LIBRUBYARG_STATIC).
Thanks, with --safe-level it works (though I don’t understand why/what
it does).
I’m not really sure that you want $(LIBRUBYARG_STATIC) in this case
I wanted to statically link libruby.so because I intend to distribute
plruby.so to machines where there might not be Ruby installed (or Ruby
might installed in a different location). Though thinking about it
again, I realize I can always distribute libruby.so along…
Thanks, with --safe-level it works (though I don't understand why/what
it does).
Except that it's a very *BAD* idea and don't repeat that this option exist
(it's voluntary *NOT* documented)
I wanted to statically link libruby.so because I intend to distribute
plruby.so to machines where there might not be Ruby installed (or Ruby
might installed in a different location). Though thinking about it
again, I realize I can always distribute libruby.so along...
If you compile it with --enable-... and $SAFE < 3 it will create
I wanted to statically link libruby.so because I intend to distribute
plruby.so to machines where there might not be Ruby installed (or Ruby
might installed in a different location). Though thinking about it
again, I realize I can always distribute libruby.so along...
“D” == David Garamond lists@zara.6.isreserved.com writes:
I wanted to statically link libruby.so because I intend to distribute
plruby.so to machines where there might not be Ruby installed (or Ruby
might installed in a different location). Though thinking about it
again, I realize I can always distribute libruby.so along…
Try this
svg% diff -ru plruby-0.3.9 plruby-0.4.0
[snip]
and use --disable-shared