LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 08-14-2008, 11:31 AM   #1
pppaaarrrkkk
Member
 
Registered: Jun 2005
Location: Aylesbury UK
Distribution: Red Hat enterprise linux 6
Posts: 101

Rep: Reputation: 15
how do I install tcl libraries


I'm trying to install SciLab.

I've downloaded source code tarball, unpacked it and run :

./configure

which says.....

checking for tcl library tcl8.5... configure: error: header file tcl.h has been found for 8.4* but no corresponding tcl library (ie libtcl8.4.so)



If search for libtcl8.4.so in Add/Remove software repositories, I can't see it anywhere or any relevant tcl libraries.

Any suggestions please.
 
Old 08-14-2008, 12:26 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
try installing tcl8.x-dev

Apart from that scilab is in the repositories - are you sure you need to install from source?
 
Old 08-14-2008, 12:36 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Check where the tcl package has installed the shared library:
Code:
rpm -ql tcl | grep lib
and see if it is in the library cache:
Code:
/sbin/ldconfig -p | grep libtcl
otherwise the RPM package can be broken or the system did not update the library cache correctly. If you find out that the tcl library is not in a standard place or does not appear in the cache, usually you can specify the correct location using some option of the configure script. Or eventually add the path to the library using the LDFLAGS environment variable and specify the library name using LIBS. Look at
Code:
./configure --help
to see which is the more suitable solution to the software you're going to compile. Another option is to update tcl to version 8.5, if the package is available for your system.

Edit: the configure script of scilab accepts the --with-tcl-library=DIR option.

Last edited by colucix; 08-14-2008 at 12:42 PM.
 
Old 08-14-2008, 01:10 PM   #4
pppaaarrrkkk
Member
 
Registered: Jun 2005
Location: Aylesbury UK
Distribution: Red Hat enterprise linux 6
Posts: 101

Original Poster
Rep: Reputation: 15
Thanks for replies.

klearview, I can't find scilab in my repository, although I know that the search doesn't always programs that I know are in the repository, but, anyway, I can't find it.

colucix, this is what I get :

$ rpm -ql tcl | grep lib
/usr/lib64/libtcl8.5.so
/usr/lib64/tcl8.5

$ /sbin/ldconfig -p | grep libtcl
libtcl8.5.so (libc6,x86-64) => /usr/lib64/libtcl8.5.so

$ echo $LDFLAGS

$



Therefore, do I need to do :

$ ./configure LDFLAGS="-L/usr/lib64"
 
Old 08-14-2008, 01:20 PM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Hmmm... given the output of the suggested commands, apparently there is no reason why the scilab configuration should not find the tcl library, unless scilab is a 32-bit application and is looking for the 32-bit version of libtcl. You can try to install it. If the Add/Remove Software is not able to find the tcl packages for the reason you will investigate later, you can try
Code:
yum list tcl tcl-devel
from the command line and see if a 32-bit version is available for your system.
 
Old 08-14-2008, 02:45 PM   #6
pppaaarrrkkk
Member
 
Registered: Jun 2005
Location: Aylesbury UK
Distribution: Red Hat enterprise linux 6
Posts: 101

Original Poster
Rep: Reputation: 15
$ yum list SciLab
Loaded plugins: refresh-packagekit
Error: No matching Packages to list

$ yum list scilab
Loaded plugins: refresh-packagekit
Error: No matching Packages to list
[pp@localhost scilab-4.1.2]$


.........so I think there is no SciLab.




$ yum list tcl tcl-devel
Loaded plugins: refresh-packagekit
Installed Packages
tcl.x86_64 1:8.5.2-2.fc9 installed
tcl-devel.x86_64 1:8.5.2-2.fc9 installed
Available Packages
tcl.i386 1:8.5.2-2.fc9 updates
tcl-devel.i386 1:8.5.2-2.fc9 updates


....Is tcl.i386 32-bit ?
....Can I have 32-bit and 64-bit both installed at the same time ?
 
Old 08-14-2008, 03:01 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Yes and yes!

Having 32-bit and 64-bit libraries installed at the same time is possible, since they will be placed in different directories, e.g. /usr/lib vs. /usr/lib64, and the library cache will take in account the difference. As demonstrated by the error in ./configure.

Please note that mine was just a guess. I mean scilab being a 32-bit application. Anyway you can give it a try and eventually (if still not works) uninstall the 32-bit version of tcl.
 
Old 08-14-2008, 06:32 PM   #8
pppaaarrrkkk
Member
 
Registered: Jun 2005
Location: Aylesbury UK
Distribution: Red Hat enterprise linux 6
Posts: 101

Original Poster
Rep: Reputation: 15
Okay, thanks for your help, colucix

./configure works without errors.


...so thanks for your help.

make

...doesn't quite work and gets stuck at a memory allocation problem. Not sure what to do about this.
 
Old 08-14-2008, 07:08 PM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by pppaaarrrkkk View Post
...doesn't quite work and gets stuck at a memory allocation problem. Not sure what to do about this.
Please, post the exact error message. Or eventually start a new thread about this new problem for a better exposure.
 
Old 08-14-2008, 08:57 PM   #10
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Quote:
Originally Posted by pppaaarrrkkk View Post
klearview, I can't find scilab in my repository
Sorry - I thought you were using Ubuntu (that's what your profile says). SciLab is in Ubuntu's repos.
 
  


Reply



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
Cannot find Tcl dll ( Perl's Tcl bridge ) Xyem Linux - Software 2 08-08-2006 09:45 AM
tcl and tk WON'T install lostlyre Linux - Software 6 03-31-2004 07:18 AM
how to install tcl/tk Boomba Linux - Newbie 3 01-22-2004 11:34 PM
trying to install tcl/tk jasonmcneil0 Linux - Software 1 10-18-2003 11:07 PM
TCL/TK install isom3tric Linux - Software 1 09-12-2003 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 06:34 PM.

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