Fxruby gem install problem

I’m trying to install the most recent fxruby gem - I don’t understand
what’s happening:

sudo gem install fxruby-1.6.14.gem
ERROR: While executing gem … (Gem::GemNotFoundException)
Could not find fxruby-1.6.14.gem (> 0) in any repository

That makes no
sense to me. I got that version number from output of the ‘gem list -r
-d’ command, to wit:

fxruby (1.6.14, 1.6.13, 1.6.12, 1.6.11, 1.6.10, 1.6.9, 1.6.8, 1.6.7,
1.6.6, 1.6.5, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6.0, 1.4.7, 1.4.6, 1.4.5,
1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2.2,
1.2.1)
FXRuby is the Ruby binding to the FOX GUI toolkit

So, gem list can find it, but gem install cannot? Huh?

Would appreciate any help. Thank!

t.

Tom C., MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< [email protected] >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom C. wrote:
| I’m trying to install the most recent fxruby gem - I don’t understand
| what’s happening:
|
| sudo gem install fxruby-1.6.14.gem ERROR: While executing gem …
| (Gem::GemNotFoundException)
| Could not find fxruby-1.6.14.gem (> 0) in any repository
|
| That makes no
| sense to me. I got that version number from output of the ‘gem list -r
| -d’ command, to wit:

My workaround:

http://gems.rubyforge.org/ contains a link to the gems themselves, and
you can simply download them from there.

‘gem install /download/location/thegem-1.1.1.gem’ will install them.

You might have to fetch the dependencies yourself, though.

Be careful to grab the gem appropriate for your OS. :wink:

N.B.: I just downloaded the BlueCloth gem via ‘gem install BlueCloth’.

It is possible the mirror you hit is currently synching its repository
against RubyForge, or otherwise not able to server files.


Phillip G.
Twitter: twitter.com/cynicalryan

~ - You know you’ve been hacking too long when…
…your children do something they shouldn’t do, you tell them to stop,
they do it just once more anyway, so you think “Well, they prefetched
the instruction and are executing it in the delay slot.”
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgAaVMACgkQbtAgaoJTgL/qGwCeKC+N0A3guBBw9N39fVnpEhDF
NpkAoKHvuRxPb85PE3XUEZnKrxQy1i2X
=IJ4g
-----END PGP SIGNATURE-----

Thanks, Phillip. Please see comments below…
Phillip G. wrote:

|
| That makes no
| sense to me. I got that version number from output of the ‘gem list -r
| -d’ command, to wit:

My workaround:

http://gems.rubyforge.org/ contains a link to the gems themselves, and
you can simply download them from there.

‘gem install /download/location/thegem-1.1.1.gem’ will install them.
Please see note [1] below.

You might have to fetch the dependencies yourself, though.
And how would I know what those are?
Twitter: twitter.com/cynicalryan
NpkAoKHvuRxPb85PE3XUEZnKrxQy1i2X
=IJ4g
-----END PGP SIGNATURE-----

[1] I’m feeling rather defeated here. Four attempts - same result in all
cases. I’m trying everything I can think of, to no avail. I’m running on
Kubuntu Linux 7.10 (most current version). Sorry for the length of this

  • didn’t want to leave out anything important:

ATTEMPT TO INSTALL FROM REMOTE LOCATION:

[a] $ sudo gem install
http://rubyforge.rubyuser.de/gems/fxruby-1.6.14.gem
[sudo] password for tom:
ERROR: While executing gem … (Gem::GemNotFoundException)
Could not find http://rubyforge.rubyuser.de/gems/fxruby-1.6.14.gem
(> 0) in any repository

[b] $ sudo gem install ‘rubyforge.rubyuser.de/gems/fxruby-1.6.14.gem
ERROR: While executing gem … (Gem::GemNotFoundException)
Could not find rubyforge.rubyuser.de/gems/fxruby-1.6.14.gem (> 0) in
any repository

[c] $ sudo gem install
‘/download/rubyforge.rubyuser.de/gems/fxruby-1.6.14.gem’
ERROR: While executing gem … (Gem::GemNotFoundException)
Could not find
/download/rubyforge.rubyuser.de/gems/fxruby-1.6.14.gem (> 0) in any
repository
tom@tomcloyd-desktop:/var/lib/gems/1.8/gems$

ATTEMPT TO INSTALL FROM LOCAL DOWNLOAD:
$ sudo gem install ‘/home/tom/Desktop/fxruby-1.6.14.gem’
Building native extensions. This could take a while…
ERROR: While executing gem … (RuntimeError)
Error instaling /home/tom/Desktop/fxruby-1.6.14.gem:
ERROR: Failed to build gem native extension.

ruby extconf.rb install /home/tom/Desktop/fxruby-1.6.14.gem
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=/usr/bin/ruby1.8
–with-fox-dir
–without-fox-dir
–with-fox-include
–without-fox-include=${fox-dir}/include
–with-fox-lib
–without-fox-lib=${fox-dir}/lib
–with-fxscintilla-dir
–without-fxscintilla-dir
–with-fxscintilla-include
–without-fxscintilla-include=${fxscintilla-dir}/include
–with-fxscintilla-lib
–without-fxscintilla-lib=${fxscintilla-dir}/lib
extconf.rb:31:in `find_installed_fox_version’: couldn’t find FOX header
files (RuntimeError)
from extconf.rb:183

COMMENT: “Fox header files” - Sorry, but I’m not a C programmer, or
whatever. “header files” means almost nothing to me, and I don’t know
how to respond to this. The “Check the mkmf.log file for more details”
reference is obscure - where IS that file? I looked several places for
it, and have yet to find it.

Any an all help offered will be much appreciated.

Thanks,

t.

Tom C., MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< [email protected] >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)

On 12/04/2008, Tom C. [email protected] wrote:

I’m trying to install the most recent fxruby gem - I don’t understand
what’s happening:

sudo gem install fxruby-1.6.14.gem ERROR: While executing gem …
(Gem::GemNotFoundException)
Could not find fxruby-1.6.14.gem (> 0) in any repository

sudo gem install fxruby

is the correct way to install the latest release of the fxruby gem.

On Apr 12, 4:31 am, Tom C. [email protected] wrote:

This may sounds silly, but did you tried this:

gem install fxruby -v ‘1.6.14’

or even better, no version at all?

gem install fxruby

What is the output of that command, also, what version of rubygems are
you using? (gem env).

Issue a complete filename only works with gem stored in your harddisk
in your current directory. Also from your other tests, http URIs will
not work either, since rubygems only download stuff from gems servers,
is not wget or curl.

HTH,

Lyle J. wrote in post #659639:

extconf.rb:31:in `find_installed_fox_version’: couldn’t find FOX header
files (RuntimeError) from extconf.rb:183

This error (which, unfortunately, is very vague) is indicating that it
couldn’t find an installation of FOX on your computer. FXRuby is just
a Ruby layer on top of FOX, and so you need to have FOX installed
before you can even attempt to install FXRuby.

Since you’re running Ubuntu Linux, you should be able to just install
FOX from a package:

sudo apt-get install libfox-1.6-dev

This is right on the money. I had a feeling there was some prerequisite
that fxruby required, but not knowing anything about it and not being a
Linux guru, I had no idea what to look for.

Thanks, Lyle! You’ve helped me resolve a problem that’s been bothering
me for several days now.

– The Beerslayer

Thomas P. wrote in post #659654:

On 12/04/2008, Tom C. [email protected] wrote:

I’m trying to install the most recent fxruby gem - I don’t understand
what’s happening:

sudo gem install fxruby-1.6.14.gem ERROR: While executing gem …
(Gem::GemNotFoundException)
Could not find fxruby-1.6.14.gem (> 0) in any repository

sudo gem install fxruby

is the correct way to install the latest release of the fxruby gem.

This is the right thing to do if you want the latest version. This is
not related with the instalation but consider install the DevKit. Since
FXruby is builded on top of C++ code meaby it requires the DevKit
installed for work, meaby the OS that you use bring it, don’t know, I
use Windows. Here’s the link for DevKit
http://rubyinstaller.org/add-ons/devkit/

On Sat, Apr 12, 2008 at 3:55 AM, Tom C. [email protected] wrote:

[1] I’m feeling rather defeated here. Four attempts - same result in all
cases. I’m trying everything I can think of, to no avail. I’m running on
Kubuntu Linux 7.10 (most current version). Sorry for the length of this -
didn’t want to leave out anything important:

ATTEMPT TO INSTALL FROM LOCAL DOWNLOAD:
$ sudo gem install ‘/home/tom/Desktop/fxruby-1.6.14.gem’
Building native extensions. This could take a while…
ERROR: While executing gem … (RuntimeError)
Error instaling /home/tom/Desktop/fxruby-1.6.14.gem:
ERROR: Failed to build gem native extension…

extconf.rb:31:in `find_installed_fox_version’: couldn’t find FOX header
files (RuntimeError)
from extconf.rb:183

This error (which, unfortunately, is very vague) is indicating that it
couldn’t find an installation of FOX on your computer. FXRuby is just
a Ruby layer on top of FOX, and so you need to have FOX installed
before you can even attempt to install FXRuby.

Since you’re running Ubuntu Linux, you should be able to just install
FOX from a package:

sudo apt-get install libfox-1.6-dev

Note that the “universe” component of the Ubuntu software repository
will need to be enabled in order for apt-get to find the
“libfox-1.6-dev” package. Once FOX is installed, you should be able to
install the FXRuby gem as before. I don’t know why you’re unable to
“see” the FXRuby gems in the RubyForge gems repository; it suggests
that there’s some configuration error, but I don’t know what it is.

Hope this helps,

Lyle

P.S. You might want to follow-up on the fxruby-users mailing list at
some point; sometimes FXRuby questions can get lost in the shuffle
here due to the high volume of messages on ruby-talk!