# Script/server error on Mac OS X

**URL:** <https://www.ruby-forum.com/t/script-server-error-on-mac-os-x/163989>\
**Category:** Rails\
**Created:** [March 26, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/script-server-error-on-mac-os-x/163989 "2009-03-26T17:52:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernardub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/96bed5/32.png) [@bernardub](https://www.ruby-forum.com/u/bernardub)\
**Post date:** [March 26, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/script-server-error-on-mac-os-x/163989/1 "2009-03-26T17:52:52Z")

</div>

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 D.

---

<div class="post-metadata">

**Author:** ![bernardub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/96bed5/32.png) [@bernardub](https://www.ruby-forum.com/u/bernardub)\
**Post date:** [March 26, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/script-server-error-on-mac-os-x/163989/2 "2009-03-26T17:54:02Z")

</div>

the same thing has happened to me.  
Anyone know a solution?

On Mar 26, 11:24 am, Bernard D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![bernardub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/96bed5/32.png) [@bernardub](https://www.ruby-forum.com/u/bernardub)\
**Post date:** [March 26, 2009, 11:08pm UTC](https://www.ruby-forum.com/t/script-server-error-on-mac-os-x/163989/3 "2009-03-26T23:08:27Z")

</div>

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](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, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![bernardub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/96bed5/32.png) [@bernardub](https://www.ruby-forum.com/u/bernardub)\
**Post date:** [March 28, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/script-server-error-on-mac-os-x/163989/4 "2009-03-28T19:32:25Z")

</div>

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
