LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2012, 03:42 PM   #1
bcramer
LQ Newbie
 
Registered: Apr 2007
Location: Brazil
Distribution: OpenSUSE
Posts: 20

Rep: Reputation: 0
Unable to locate libruby-static.a and ruby.h


Hi,

Using ./configure I got the following messages:
Unable to locate libruby-static.a
Unable to locate ruby.h

I installed 'ruby' using Yast in OpenSuse 11.4 but the message above continues.
File libruby-static.a is located in /usr/lib64/
and ruby.h in /usr/lib64/ruby/1.8/x86_64-linux/.

What command (or alternative procedure)can be used together with ./configure to make both files recognizable ?

Thank you
 
Old 06-07-2012, 06:45 PM   #2
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Quote:
Originally Posted by bcramer View Post
Hi,

Using ./configure I got the following messages:
Unable to locate libruby-static.a
Unable to locate ruby.h

I installed 'ruby' using Yast in OpenSuse 11.4 but the message above continues.
File libruby-static.a is located in /usr/lib64/
and ruby.h in /usr/lib64/ruby/1.8/x86_64-linux/.

What command (or alternative procedure)can be used together with ./configure to make both files recognizable ?

Thank you
Hi Bcramer, It's possible that during the installation a link did not get created. You could try creating a softlink (ln -s) from /usr/lib to the file locations (see man ln for usage). If that doesn't solve the problem, try creating the softlinks from /lib or /lib64. If none of those work I'd try re-installing the program.

How did you initially install these files, as rpms, with yast, or from OS search website (http://software.opensuse.org/search)? I would recommend using the search site and using the "one-click" method as this determines the correct version and dependencies for your system.

Also, you might consider upgrading to OS 12.1 as 11.4 will hit end-of-life status in about 6 months (no longer supported)

Tom

Last edited by tommyttt; 06-07-2012 at 06:47 PM.
 
Old 06-08-2012, 02:54 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Quote:
What command can be used together with ./configure to make both files recognizable ?
Depends what you are trying to configure. Please specify.
( "All" applications behave different.)

The command : './configure --help' will most often tell how to do.


Examples : 1) ./configure CFLAGS=-I/usr/lib64/ruby/1.8/x86_64-linux/
2) ./configure --with-ruby-includes=/usr/lib64/ruby/1.8/x86_64-linux/

.
 
Old 06-08-2012, 10:07 AM   #4
bcramer
LQ Newbie
 
Registered: Apr 2007
Location: Brazil
Distribution: OpenSUSE
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you all for the suggestions.

I just upgraded to 11.4_x64. Unfortunately Gaussian v.03/09 software installs only in SuSE Linux 9.3, 10.3, 11.4 or SuSE Linux Enterprise 11 SP1. Also the Gaussian remark "SuSE versions specified for AMD64, EM64T, IA32, IA64, and IBM Power systems refer only to the unmodified, unpatched original media/ISO image distributions as released by the vendor". So I have to live with this for a while, unless you guys know another way. But this is not important now.

Back to your questions:

I installed ruby with Yast from the ISO image DVD as downloaded from the net.When slecting ruby it installs all dependecies automatically as they are all available on the media.

I am using configure in a program called psi3 (an open-source suite of ab initio quantum chemistry programs -http://www.psicode.org/). It seems that it is very simple to install it except for the ruby issue.


I tried the suggested recommendations (except upgrading to Suse 12.1). I didn't try to explore the subject going to www.ruby-lang.org, maybe it helps. Anyway, the 'missing files' ruby.h and libruby-static.a are effectively available in their directories. I don't understand why the symbolic link does not work.

Any additional help is welcome.

Last edited by bcramer; 06-08-2012 at 10:09 AM.
 
Old 06-08-2012, 11:31 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Well, it seems to be a must to specify the ruby-lib / ruby-include, that you want to use.
Code:
./configure --help
  --with-ruby-include     where to look for Ruby headers (-Idir1 -Idir2 etc.)
  --with-ruby-lib         which Ruby library to use (-Ldir1 -lruby_red)
These configure options will work :
Code:
./configure --with-ruby-include=-I/usr/lib64/ruby/1.8/x86_64-linux/ --with-ruby-lib=-L/usr/lib64/
Suse 11.4 - 64bits, psi-3.4.0.tar.gz was used for the configure test.


.

Last edited by knudfl; 06-08-2012 at 12:32 PM.
 
Old 06-08-2012, 12:33 PM   #6
bcramer
LQ Newbie
 
Registered: Apr 2007
Location: Brazil
Distribution: OpenSUSE
Posts: 20

Original Poster
Rep: Reputation: 0
Smile Unable to locate ruby.h libruby-static.a - SOLVED

Hi,
The hints posted by knudfl solved the problem. Necessary or not, I also installed the last version of ruby from www.ruby-lang.org before I used the --with... instructions.

Thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] E: Unable to locate package nova-comm E: Unable to locate package python-psycopq2 mint12 Linux - Virtualization and Cloud 2 01-05-2012 12:07 PM
Where do I find libruby.so.1.8? jspaceman Slackware 3 08-12-2006 08:21 AM
Unable to locate in bash anjanesh Linux - General 4 01-30-2006 10:46 PM
unable to locate modules. cambie Red Hat 2 11-25-2004 11:08 AM
unable to locate safe_mysqld ziggie216 Linux - Software 1 06-14-2004 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration