Configure Error Tcl/tk Not Found
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn tk.h not found more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered fatal error: tk.h: no such file or directory Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:
Install Tk
Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top configure: error: *** Unable to locate Tk includes up vote 3 down vote favorite 1 I am trying to install the latest stable release of GRASS GIS from SVN. In the stage of running configure command I get the following error at the last stage. checking for location of Tcl/Tk includes... /usr/include/tcl8.5 checking for tcl.h... yes checking for tk.h... no configure: error: *** Unable to locate Tk includes. The command I run for configuration is - ./configure --with-tcltk-includes=/usr/include/tcl8.5 --with-proj-share=/usr/share/proj Can anyone suggest me what I am missing? configuration compiling share|improve this question edited Oct 18 '10 at 7:06 Javier Rivera 24.9k56394 asked Oct 18 '10 at 6:10 Chethan S. 1,25631944 add a comment| 1 Answer 1 active oldest votes up vote 8 down vote accepted It would appear to be tk8.5-dev you can install it by doing sudo apt-get install tk8.5-dev To find out missing files in the future you can use apt-file (sudo apt-get install apt-file). After installing do apt-file update and then you can search for your missing file. For example in this case I did apt-file search tk.h and it brought up tk8.5-dev. Another neat trick is if the package already exists in the repositories (it does as grass) you can do sudo apt-get build-dep PACKAGE (in this case sudo apt-get build-dep grass) which will install all the dependancies for GRASS allowing you to compile it with ease. share|improve this answer edited Oct 18 '10 at 6:42 answered Oct 18 '10 at 6:30 Nick HS 693412 Thanks a lot! You have saved me hours of time. I could use apt-file search option to solve next few similar errors which came up. –Chethan S. Oct 18 '10 at 8:09 "don't give a man a fish teach him how to fish": +1 for apt-file, will be very useful –fableal Nov 20 '13 at 12:01 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign http://askubuntu.com/questions/8060/configure-error-unable-to-locate-tk-includes up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Tcl/Tk not being installed correctly on my computer up vote 1 down vote favorite I am currently trying to install xgrafix from PTSG's website. Running configure within xgrafix folders I am running into a problem. http://askubuntu.com/questions/628696/tcl-tk-not-being-installed-correctly-on-my-computer It is stating that I must make sure Tcl/Tk is installed correctly and rerun the configure. I have tried remove and re-installing Tcl and Tk without having any luck. Also, I tried to use different versions of Tcl/Tk in the event that it is not compatible with the most recent update. I am a beginner in using Linux so if you have any tips on how to fix it, that would be appreciated greatly. configuring with options: --prefix=/usr/local --with-SCALAR=double --enable-fulloptimize --with-XGRAFIX-lib=/usr/local/lib --with-XGRAFIX-include=/usr/local/include configure: WARNING: unrecognized options: --with-XGRAFIX-lib, --with-XGRAFIX-include checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu Using C++ compiler g++ Using C compiler gcc checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler
Submission Nodes Job Failure Messages sorted by: [ http://www.supercluster.org/pipermail/torqueusers/2011-February/012159.html date ] [ thread ] [ subject ] https://www.tcl.tk/doc/howto/compile.html [ author ] I'm trying to build torque-3.0.0 and getting this error when running make rpm on fc12 x86_64: configure: error: Tcl was requested but not found tk, tcl 8.5 and their devel packages are not found installed. I've tried providing the locations of t[k,cl]Config.sh to configure as suggested by configure --help. Below is my configure line. ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-server-home=/var/spool/torque --enable-server --enable-mom --enable-clients --enable-gui --enable-drmaa configure error tcl/tk --with-tcl /usr/lib64/tcl8.5/ --with-tcltk /usr/lib64/ --with-pam=/lib64/security --with-tcl directory containing tcl configuration (tclConfig.sh) --with-tk directory containing tk configuration (tkConfig.sh) [user at host]# locate tkConfig.sh tclConfig.sh^C /usr/lib64/tclConfig.sh /usr/lib64/tkConfig.sh /usr/lib64/tcl8.5/tclConfig.sh With previous versions of torque, I think I remember running into tcl issues where I had to create a symlink to a .so file named w/ 8.4 versioning. That didn't work this time. If requirements are more specific, it would be good if --help output detailed it. thx- Jeremy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20110213/8aeecd88/attachment.html Previous message: [torqueusers] Why can't I get one processor per node on Torque 2.4.11? Next message: [torqueusers] Submission Nodes Job Failure Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the torqueusers mailing list
for compiling Tcl from a source distribution. Tcl has been ported to a wide variety of platforms, and compilation has been made easier through GNU autoconf on UNIX. Before You Start Before trying to compile Tcl you should do the following things: Try ActiveTcl. ActiveState provides easy-to-install binaries of Tcl for many platforms. Make sure you have the most recent patch release (8.6.4). Look in the FTP directory from which you retrieved this distribution to see if it has been updated with patches. Patch releases fix bugs, so you should normally use the latest patch release for the version of Tcl that you want. Source Code Organization Each Tcl component has its source organized into the following structure, which is illustrated in the figure below: doc Contains manual pages in a variety of formats. generic Contains source code that is common for all platforms (.c and .h files) library Contains a library of Tcl scripts used by the component. macosx Contains Macintosh-specific files and XCode project files. tests Contains a test suite. tools Contains a collection of tools used when generating Tcl distributions. (Tcl only.) unix Contains UNIX-specific source code and configure and Makefiles used for building on UNIX (including Mac OS X). You can create subdirectories of the unix directory if you want to build for multiple versions of UNIX. win Contains Windows-specific source code and Makefiles used for compiling with VC++ or mingw (gcc). Installed Software Organization When you install Tcl, it ends up in a different organization that supports an installation for multiple operating systems and machine types. You can define architecture-specific subdirectories (e.g., solaris-sparc) that contain programs and binary object files for that platform. The directory structure also supports installation of various Tcl extensions so they can be automatically found by the Tcl shell programs. For example, any subdirectory of the install/lib directory is searched for Tcl script packages, and any shared libraries in the architecture-specific lib directory can be dynamically loaded into the Tcl shells. After installatio