# FXRuby 1.6.4 redux

**URL:** <https://www.ruby-forum.com/t/fxruby-1-6-4-redux/79319>\
**Category:** Ruby\
**Created:** [December 14, 2006, 7:41am UTC](https://www.ruby-forum.com/t/fxruby-1-6-4-redux/79319 "2006-12-14T07:41:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [December 14, 2006, 7:41am UTC](https://www.ruby-forum.com/t/fxruby-1-6-4-redux/79319/1 "2006-12-14T07:41:04Z")

</div>

OK, thanks to the timely help of Lyle J. (Thanks, Lyle!) I got  
FXRuby 1.6.4 compiled and installed. Unfortunately I cannot say that I  
have it running.

1. Using ‘gem install fxruby’, as per the FXRuby web site’s warning,  
doesn’t work. (This was not unexpected.)

2. Building FXRuby 1.6.4 myself from source and installing it  
(‘install.rbconfig’, ‘install.rb setup’ and ‘install.rb install’) seems  
to have worked in that it compiled (relatively) cleanly, made the files  
I’d expect and then put them about where I’d expect to find them.  
That’s where the good news ends, however. When I try a quick test of  
it, things fail in ways I can’t figure out:

My inexperienced eyes can find nothing wrong. The fox16.so file that it  
claims it can’t find is very obviously there. Or, if I’m misreading  
this, the libfxscintilla.so.18 file it claims it can’t find is also  
clearly present. Permissions seem to all be sane. I can’t figure out  
what it wants from me. What painfully, laughably obvious thing am I  
missing here?

–  
Michael T. Richter  
Email: removed\_email\_address@domain.invalid, removed\_email\_address@domain.invalid  
MSN: removed\_email\_address@domain.invalid, removed\_email\_address@domain.invalid; YIM:  
michael\_richter\_1966; AIM: YanJiahua1966; ICQ: 241960658; Jabber:  
removed\_email\_address@domain.invalid

“My paramount object in this struggle is to save the Union, and is not  
either to save or to destroy slavery.” --Abraham Lincoln

---

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [December 14, 2006, 9:11am UTC](https://www.ruby-forum.com/t/fxruby-1-6-4-redux/79319/2 "2006-12-14T09:11:07Z")

</div>

Michael T. Richter wrote:

> OK, thanks to the timely help of Lyle J. (Thanks, Lyle!) I got  
> FXRuby 1.6.4 compiled and installed. Unfortunately I cannot say that I  
> have it running.

/ …

> What painfully, laughably obvious thing am I  
> missing here?

The library file is present, but the application that needs it cannot  
find  
it.

1. Check that /etc/ld.so.conf contains the path to the required library  
directory. Example of /etc/ld.so.conf contents:

* * *

## include ld.so.conf.d/\*.conf /usr/local/lib

Notice that the path to the required library directory is explicitly  
included in this key library path resolution file.

If your /etc/ld.so.conf file doesn’t look like this, edit it.

1. Run ldconfig as root:

# /sbin/ldconfig

See if this generic approach resolves the problem.

BTW this is a way to resolve a large number of library-related problems.

---

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [December 14, 2006, 9:51am UTC](https://www.ruby-forum.com/t/fxruby-1-6-4-redux/79319/3 "2006-12-14T09:51:13Z")

</div>

On Thu, 2006-14-12 at 17:10 +0900, Paul L. wrote:

# a whole bunch of stuff about /etc/ld.so.conf

Yes, that did it Paul. Thanks. I guess what baffled me was the fact  
that it was giving the path all the way to the library to say it wasn’t  
there. Weird error message, but this set of incantations made it all  
work, so I’m happy.

–  
Michael T. Richter  
Email: removed\_email\_address@domain.invalid, removed\_email\_address@domain.invalid  
MSN: removed\_email\_address@domain.invalid, removed\_email\_address@domain.invalid; YIM:  
michael\_richter\_1966; AIM: YanJiahua1966; ICQ: 241960658; Jabber:  
removed\_email\_address@domain.invalid

“Sexual organs were created for reproduction between the male element  
and the female element – and everything that deviates from that is not  
acceptable from a Buddhist point of view. Between a man and man, a woman  
and another woman, in the mouth, the anus, or even using a hand.” --The  
Dalai Lama

---

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [December 14, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/fxruby-1-6-4-redux/79319/4 "2006-12-14T15:57:52Z")

</div>

On 12/14/06, Michael T. Richter [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Yes, that did it Paul. Thanks. I guess what baffled me was the fact that  
> it was giving the path all the way to the library to say it wasn’t there.

It was giving you the path to the FXRuby extension’s shared library  
(in your case, /usr/local/lib/site\_ruby/1.8/i486-linux/fox16.so), and  
Ruby did know where to find that file. What it couldn’t find was  
/usr/local/lib/libFOX-1.6.so, which is a dependency of the former. The  
information that Paul provided corrected that latter problem.

This is discussed in the FXRuby U.'s Guide, here:

```
http://www.fxruby.org/doc/build.html#tragedies

```

Hope this helps,

Lyle

P.S. Thanks, Paul!
