thread.so (LOAD ERROR)

0 views
Skip to first unread message

Jean Nibee

unread,
Aug 26, 2007, 12:09:19 AM8/26/07
to rubyonra...@googlegroups.com
I did an update to ruby 1.8.6 and since then I can't run anything in
Rails.

Ex:
j@necropolis:~/sandbox/rhp/0708/trunk$ rake -T
/usr/lib/ruby/1.8/thread.rb:5:in `require': no such file to load --
thread.so (LoadError)
from /usr/lib/ruby/1.8/thread.rb:5
from /usr/local/lib/site_ruby/1.8/rubygems.rb:85:in `require'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:85
from /usr/bin/rake:9:in `require'
from /usr/bin/rake:9
j@necropolis:~/sandbox/rhp/0708/trunk$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
j@necropolis:~/sandbox/rhp/0708/trunk$ rails -v
Rails 1.2.3

This happens if I run script/generate.. anything. I've uninstalled all
the gems related to rails (at least all the ones I know of) And it
hasn't helped.

I am running Ubuntu Feisty and ALL of my packages and gem installs were
through apt-get or ruby gems.

Thanks.
--
Posted via http://www.ruby-forum.com/.

Butch Anton

unread,
Aug 26, 2007, 3:27:03 AM8/26/07
to rubyonra...@googlegroups.com
Trying running this as root and see if it works. If it does, chances
are good you have a permissions problem, most probably caused by the
update.

Jean Nibee

unread,
Aug 26, 2007, 11:46:55 AM8/26/07
to rubyonra...@googlegroups.com
Same problem.s

VERY Much an issue because I have no ruby / Rails environment that works
now and I am not experienced enough to know how to get rid of EVERYTHING
and reinstall it.

Is there a Thread gem / package I should focus on?

Butch Anton wrote:
> Trying running this as root and see if it works. If it does, chances
> are good you have a permissions problem, most probably caused by the
> update.
>

Butch Anton

unread,
Aug 26, 2007, 12:05:06 PM8/26/07
to rubyonra...@googlegroups.com
I'm running on OS X, so your mileage may vary. In my case,
/usr/local/bin/ruby and associated binaries were owned by root, so I
chowned them to being owned by me. I also did the same thing
(recursively) with /usr/local/liby/ruby. That fixed it.

I'm pretty sure this solution has its own set of problems. For example,
I imagine that if I ever wanted to run something that binds to a
privledged port (like port 80), I'd have to run it as root. However,
that's a fairly normal Unix-ism, and one I'm willing to live with.

Anyone else want to chime in here about the correct ownership of
ruby/rails installed files?

Errol

unread,
Aug 29, 2007, 10:42:05 PM8/29/07
to Ruby on Rails: Talk
The file thread.so is in a subdirectory /usr/lib/ruby/1.8/i686-linux
or /usr/lib/ruby/1.8/i486-linux.

Just copy the file that would be correct for your computer up to /usr/
lib/ruby/1.8,

I copied up the i686-linux version.

On Aug 26, 9:46 am, Jean Nibee <rails-mailing-l...@andreas-s.net>
wrote:

Reply all
Reply to author
Forward
0 new messages