LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2006, 08:13 AM   #1
diego_cn
Member
 
Registered: Mar 2006
Distribution: fedora 7
Posts: 62

Rep: Reputation: 16
Compile Tk from source: make error


Hello

I have a hard time trying to compile tk from source

I am using fedora core 4 and trying to run amsn. It failed dependency tk=>8.3 and need wish. A check to fc4 rpm list only give tcl-8.4 but no tk installed. I decided I should install tk myself, but make gave me this error:
Code:
[root@vlan451-080-095 unix]# make
...(a bunch of stuff flying by)
/usr/bin/ld: cannot find -ltclstub8.4
collect2: ld return 1
make: *** [libtk8.4.so] error 1
Does it mean it cannot find tcl stuff in ld.so file? Any suggestions? 10K appriciation to any help.

P.S I used linux for almost 2 years. But until a while ago, i never had any success with make && make install :-D


./configure gave me these if you are interested
Code:
root@vlan451-080-095 unix]# ./configure
creating cache ./config.cache
checking for Tcl configuration... found /programs/tcl8.4.12/unix/tclConfig.sh
checking for existence of /programs/tcl8.4.12/unix/tclConfig.sh... loading
checking for tclsh... /usr/bin/tclsh8.4
checking for tclsh in Tcl build directory... /programs/tcl8.4.12/unix/tclsh
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for limits.h... yes
checking for unistd.h... yes
checking stdlib.h... yes
checking if the compiler understands -pipe... yes
checking for building with threads... no (default)
checking for sin... no
checking for main in -lieee... yes
checking how to build libraries... shared
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-2.6.15-1.1833_FC4
checking for dlopen in -ldl... yes
checking for ar... ar
checking for build with symbols... no
checking for required early compiler flags...  _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for open64... yes
checking for lseek64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking for fd_set in sys/types... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for strtod... yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking pw_gecos in struct pwd... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for main in -lXbsd... no
checking for connect... yes
checking for gethostbyname... yes
checking whether char is unsigned... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating tkConfig.sh

Last edited by diego_cn; 03-27-2006 at 08:19 AM.
 
Old 03-27-2006, 09:20 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Do you have libtclstub8.4.a in /usr/lib?
Code:
find /usr -name libtclstub8.4.a
 
Old 03-27-2006, 01:04 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
You might have only the runtime Tcl libs. Maybe you need to install Tcl from source, or maybe there is a separate Tcl-dev rpm.
 
Old 03-27-2006, 01:36 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
this is an easy one
you have to install tcl before you can install tk

compiling tcl/tk is not for the unitiated
use these instructions
http://www.linuxfromscratch.org/blfs...neral/tcl.html
http://www.linuxfromscratch.org/blfs...eneral/tk.html
 
Old 03-28-2006, 01:38 PM   #5
diego_cn
Member
 
Registered: Mar 2006
Distribution: fedora 7
Posts: 62

Original Poster
Rep: Reputation: 16
Problem solved, I have to uninstall fedora core tcl rpm first, then compile tcl from source, then compile tk.

Thanks for the posts
 
Old 04-11-2006, 06:46 AM   #6
the darkhorse
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
I am newbie running Fedora core 4 and am trying to install tcl/tk. I managed to install tcl fine eventually but when trying to install tk I get this error message.
[root@localhost win]# ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ar... ar
checking for ranlib... ranlib
checking for windres... no
configure: error: Required resource tool 'windres' not found on PATH.

any help would be appreciated. Thanks
 
  


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
Odd Chars w/ make/C++ compile error on Fedora w/bash shell zemux Linux - General 2 01-22-2006 01:48 AM
Gettext Compile error during 'make' tcom Linux From Scratch 3 11-13-2005 10:29 AM
Ndiswrapper Make Error - Kernal Source Andorin Linux - Software 13 03-30-2005 10:40 PM
Cant compile TuxKart CVS. Give out error, on make. RHLinuxGUY Linux - Games 5 11-15-2004 05:48 PM
Trying to compile older make of libc, getting error Cecil Linux - Software 0 07-16-2003 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 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