Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 6 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
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.