Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#11785 closed defect (worksforme)

Ruby looking for fcgi in /usr/local/lib ???

Reported by: clayton.b.cafiero@… Owned by: pguyot (Paul Guyot)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: clayton.b.cafiero@…, pguyot (Paul Guyot)
Port:

Description

Even though fcgi and ruby were both installed via MacPorts, ruby looks for a little different installation of fcgi in /usr/local/lib

For example:

SevenYearItch:/webroot/public/foo clayton$ ruby script/server dyld: NSLinkModule() error dyld: Library not loaded: /usr/local/lib/libfcgi.0.dylib Referenced from: /opt/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.9.0/fcgi.bundle Reason: image not found Trace/BPT trap

I assume, from the "Referenced From" line that the issue resides with ruby and not rails (1.2.3 installed from gem). I tried installing fcgi from gem to correct this problem and this had no effect. So again, I assume it's ruby complaining as noted above.

Installed fcgi to default location /usr/local/lib from source (fcgi-2.4.0) and problem was resolved.

Output from port installed

The following ports are currently installed:

apr @1.2.8_0 (active) apr-util @1.2.8_2 (active) autoconf @2.61_0 (active) cclient @2004g_0 (active) curl @7.16.1_0+darwin_8 (active) db44 @4.4.20_1+darwin_8 (active) expat @2.0.0_1 (active) fcgi @2.4.0_1 (active) freetype @2.3.4_0 (active) gettext @0.16.1_0 (active) jpeg @6b_1 (active) lame @3.97_0 (active) libiconv @1.11_4+darwin_8 (active) libmcrypt @2.5.8_0+darwin_8 (active) libpng @1.2.16_0+darwin_8 (active) libtool @1.5.22_0 (active) libxml2 @2.6.27_0 (active) libxslt @1.1.20_0 (active) lighttpd @1.4.13_0+darwin_8+mysql5 (active) lynx @2.8.6rel.4_0 (active) mhash @0.9.8.1_0+darwin_8 (active) mysql5 @5.0.37_0+darwin_8 (active) ncftp @3.2.0_0 (active) ncurses @5.6_0+darwin_8 (active) ncursesw @5.6_0+darwin_8 (active) neon @0.26.3_0 (active) openssl @0.9.8e_0+darwin_8 (active) p5-perl-tidy @20060719_0 (active) pcre @7.0_0 (active) perl5.8 @5.8.8_0+darwin_8 (active) php5 @5.2.1_3+darwin_8+fastcgi+macosx+mysql5 (active) pkgconfig @0.21_0 (active) rb-fcgi @0.8.6_0 (active) rb-rubygems @0.9.2_0 (active) readline @5.2.001_0 (active) ruby @1.8.6_0 (active) sqlite3 @3.3.15_0+darwin_8 (active) subversion @1.4.3_1+tools (active) tidy @20051026_0+darwin_8 (active) tiff @3.8.2_0+darwin_8 (active) wget @1.10.2_0+darwin_8 (active) zlib @1.2.3_1 (active)

Change History (3)

comment:1 Changed 16 years ago by ryandesign (Ryan Schmidt)

Cc: clayton.b.cafiero@… pguyot@… added
Milestone: Port Bugs
Owner: changed from macports-dev@… to pguyot@…
Priority: Not setExpected

Paul, is this something you can tackle, since you maintain the ruby port?

comment:2 Changed 16 years ago by pguyot (Paul Guyot)

Resolution: worksforme
Status: newclosed

I am confused by your installation of rb-fcgi. What does "port contents rb-fcgi" give?

Here, I have:

Port rb-fcgi contains:

/opt/local/lib/ruby/vendor_ruby/1.8/fcgi.rb /opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.9.0/fcgi.bundle /opt/local/share/doc/rb-fcgi/README

While your crash mentions that the library linked against /usr/local/lib something is: /opt/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.9.0/fcgi.bundle

comment:3 Changed 14 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.