Forum: Ruby on Rails script/server error on Mac OS X

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C52f39a76967d9d7ce6c0ced1a148337?d=identicon&s=25 Bernard Dubuisson (Guest)
on 2009-03-26 17:52
(Received via mailing list)
Hello all,

Recently, my apps stopped functionning properly on my dev machine
running Mac OS 10.4.11

Both script/server and script/console commands return this :

dub-macbook:~/Sites/contacts dub$ script/server
dyld: NSLinkModule() error
dyld: Symbol not found: _rb_thread_alive_p
  Referenced from: /Users/dub/.gem/ruby/1.8/gems/fastthread-1.0.5/lib/
fastthread.bundle
  Expected in: flat namespace

Trace/BPT trap
dub-macbook:~/Sites/contacts dub$ script/server
dyld: NSLinkModule() error
dyld: Symbol not found: _rb_thread_alive_p
  Referenced from: /Users/dub/.gem/ruby/1.8/gems/fastthread-1.0.5/lib/
fastthread.bundle
  Expected in: flat namespace

Trace/BPT trap
-----
The apps were working properly before I proceeded to update some gems
including capistrano and mongrel.

This affects apps in development that run the latest versions of rails
(2.2.2), although I have an old app running 1.1.6 and it works fine.

I could not find this type of error documented anywhere, does anyone
have a clue?

Things I tried :
check if a new fresh app renders the same error (it does)
reinstalling ruby 1.8.6 (still the same error)
reinstalling gems (error still there)
updating mongrel, fastthread, rails (idem)

Thanks in advance for any advice or clue as to what's going on!

Bernard Dubuisson
701ec69ff392e106910f51dda4132803?d=identicon&s=25 themikejahn@gmail.com (Guest)
on 2009-03-26 17:54
(Received via mailing list)
the same thing has happened to me.
Anyone know a solution?

On Mar 26, 11:24 am, Bernard Dubuisson <bernarddubuis...@gmail.com>
C52f39a76967d9d7ce6c0ced1a148337?d=identicon&s=25 Bernard Dubuisson (Guest)
on 2009-03-26 23:08
(Received via mailing list)
For some reason, I tried uninstalling fastthread 1.0.5 with the
command gem uninstall fastthread -v 1.0.5 as explained here :
http://railsforum.com/viewtopic.php?pid=91777
It didnt work for me, for some reason fastthread 1.0.5 was still
listed as installed while performing gem -list
Bu then I removed all fastthread versions by hand with rm -dr
fastthread* in the proper directory, then reinstalled fastthread
1.0.4.
script/server was still broken, but script/server webrick worked
(after hitting ctrl-c, strangely).

I'm aware this is just a dirty workaround, not sure everything is in
proper working order.
I think I'll just install passenger and forget about mongrel, unless
anyone comes with a clean solution?

On Mar 26, 5:53 pm, "themikej...@gmail.com" <themikej...@gmail.com>
C0fbbaefafdf22a304310e775eec1cae?d=identicon&s=25 Karl Hoover (karlhoover)
on 2009-03-28 19:32
Same problem here, fastthread 1.0.4 are 1.0.5 are broken or otherwise
incompatible
with the latest update -
SOLUTION: uninstall fastthread 1.0.4 and explicitly install fastthread
1.0.1

here is partial log of my session

Hoover-iMac:/var/www/cook amateur_peasant$ mongrel_rails start -d
dyld: NSLinkModule() error
dyld: Symbol not found: _rb_thread_alive_p
  Referenced from:
/usr/local/lib/ruby/gems/1.8/gems/fastthread-1.0.4/lib/fastthread.bundle
  Expected in: flat namespace

Trace/BPT trap


Hoover-iMac:/usr/local amateur_peasant$ sudo  gem uninstall fastthread
Password:

You have requested to uninstall the gem:
        fastthread-1.0.4
mongrel-1.1.5 depends on [fastthread (>= 1.0.1)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  y
Successfully uninstalled fastthread-1.0.4
Hoover-iMac:/usr/local amateur_peasant$ sudo gem install fastthread -v
1.0.1

THEN I CAN START mongrel

Hoover-iMac:/var/www/cook amateur_peasant$ mongrel_rails start -d
Hoover-iMac:/var/www/cook amateur_peasant$



versions:

Mac OS X 10.4.11
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.11.1]
gem 1.3.1
rake 0.8.4
mysql-5.1.32
This topic is locked and can not be replied to.