This is dynamic linking you're experiencing! You will need to
recompile the dependent libraries in 64-bit as well to get everything
working.
-Josh
On Aug 24, 2008, at 8:32 AM, John Kodis <[EMAIL PROTECTED]> wrote:
I'm trying to build Shoes for an AMD-64 installation of Fedora Linux.
Fedora places its 64-bit libraries under /usr/lib64 on this platform,
and so to get Shoes to compile, I had to make a few minor changes to
the Rakefile from the current git version (attached below).
Other than a few warnings that "call to
‘_curl_easy_setopt_err_write_callback’ declared with attribute
warning: curl_easy_setopt expects a curl_write_callback argument for
this option", the build seemed to be successful. However, any attempt
to run shoes fails with:
$ dist/shoes --help
no such file to load -- open-uri
even though:
$ irb
irb(main):001:0> require 'open-uri'
=> true
Even after copying the open-uri.rb file from /usr/lib/ruby/1.8/ to
shoes/dist/ruby/lib/rubygems, the problem persists. I'd appreciate
any suggestions as to what to try next. Thanks!
-- John.
diff --git a/Rakefile b/Rakefile
index 39ac483..be31238 100644
--- a/Rakefile
+++ b/Rakefile
@@ -87,7 +87,7 @@ end
desc "Does a full compile, for the OS you're running on"
task :build => [:build_os, "dist/VERSION.txt"] do
mkdir_p "dist/ruby"
- cp_r "#{ext_ruby}/lib/ruby/1.8", "dist/ruby/lib"
+ cp_r "#{ext_ruby}/lib64/ruby/1.8", "dist/ruby/lib"
unless ENV['STANDARD']
%w[rdoc rss soap wsdl xsd].each do |libn|
rm_rf "dist/ruby/lib/#{libn}"
@@ -147,9 +147,9 @@ task :build => [:build_os, "dist/VERSION.txt"] do
end
end
else
- cp "#{ext_ruby}/lib/lib#{ruby_so}.so",
"dist/lib#{ruby_so}.so.1.8"
- cp "/usr/lib/libgif.so", "dist/libgif.so.4"
- cp "/usr/lib/libjpeg.so", "dist/libjpeg.so.62"
+ cp "#{ext_ruby}/lib64/lib#{ruby_so}.so",
"dist/lib#{ruby_so}.so.1.8"
+ cp "/usr/lib64/libgif.so", "dist/libgif.so.4"
+ cp "/usr/lib64/libjpeg.so", "dist/libjpeg.so.62"
if ENV['VIDEO']
cp "/usr/lib/libvlc.so", "dist"
ln_s "libvlc.so", "dist/libvlc.so.0"