Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using Red Hat Linux Fedora Core 2 and I'm trying to install tcl/tk. I've successfully installed tcl, but when I try to run the make file on tk, I'm missing some libraries. Where do I get these libraries, or did I forget to install something when I installed Linux? The libraries are:
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
Mine are in /usr/X11R6/include/X11. I see that they are also among the source files for Xorg 6.8.1 that I have here. You may want to see if there is an X-devel rpm on the install disks, and install it.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
Right. But they may be in an rpm on your install disks. A number of distributions separate these header files out into a "devel" rpm or package that is not installed by default and needs to be installed later if you want to compile applications that need them. Check your install disks for a "X-devel*.rpm". If you find one, install it. Then try your compile again.
Thanks - I installed the devl rpm file and that made things go a lot smoother. :-)
Now I'm running into another problem. When I run the make file, I'm getting a lot of "implicit declaration of function" warnings:
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:199: warning: implicit declaration of function `XParseColor'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:219: warning: implicit declaration of function `XLoadFont'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:225: warning: implicit declaration of function `XCreateGlyphCursor'
/home/maryp/tk8.3.5/unix/tkUnixCursor.c:273: warning: implicit declaration of function `XCreatePixmapCursor'
<this is just a small example>
The make process then ends with:
cc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion -Wno-implicit-int -fPIC -I/home/maryp/tk8.3.5/unix -I/home/maryp/tk8.3.5/unix/../generic -I/home/maryp/tk8.3.5/unix/../bitmaps -I/home/maryp/tcl8.3.5/generic -I/usr/X11R6/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS /home/maryp/tk8.3.5/unix/tkUnixDraw.c
/home/maryp/tk8.3.5/unix/tkUnixDraw.c: In function `TkScrollWindow':
/home/maryp/tk8.3.5/unix/tkUnixDraw.c:73: warning: implicit declaration of function `XCopyArea'
/home/maryp/tk8.3.5/unix/tkUnixDraw.c:97: error: void value not ignored as it ought to be
make: *** [tkUnixDraw.o] Error 1
Maybe I'm missing some other stuff that needs to be installed?
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
Generally, for what you are doing, the warning messages can be ignored. It is that last error that is hanging you up, and I don't think I can be much help with that.
I was just looking at the tcl foundary site on sourceforge, and I noticed that tcl/tk is at version 8.4.9 now. It looks to me like you are compiling version 8.3.5. You might want to get the source for 8.4.9 and try compiling that. (you would need the same version tcl.) Another option, if you just want to get tcl/tk on your machine and don't need to compile in any special settings, would be to look for a rpm for tcl/tk on the Fedora Core site and install that. Tcl/tk is so popular though, it would surprise me if it weren't on your install disks and you could install it from there. I am not sure what version came with Fedora Core 2 though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.