logo       

Re: Perl calling C calling Ruby (linking problem): msg#01183

lang.ruby.general

Subject: Re: Perl calling C calling Ruby (linking problem)

>>>>> "P" == Peter Munro <peter.munro@xxxxxxxxxxxxxxxxxxxxx> writes:

P> Ruby exception: /opt/lib/ruby/1.6/i686-linux/digest/md5.so: undefined

Post your configuration, and the commands that you have executed

pigeon% ldd regdb.so
libruby.so.1.6 => /home/ts/local/r167/lib/libruby.so.1.6 (0x40004000)
libdl.so.2 => /lib/libdl.so.2 (0x400b6000)
libm.so.6 => /lib/libm.so.6 (0x400ba000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x400db000)
libc.so.6 => /lib/libc.so.6 (0x40108000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
pigeon%

pigeon% cat a.pl
#!/usr/bin/perl -l
use regdb;
$res = regdb::runruby("
require 'digest/md5'
Digest::MD5.new('hello')
");
print $res;
pigeon%

pigeon% perl a.pl
5d41402abc4b2a76b9719d911017c592
pigeon%


Guy Decoux



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise