Linux - SoftwareThis 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
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.
Iam building some software(currently unsupported) that uses Imakefiles. The software does have a Imake.tmpl file. It is located (relative to the top directory)
config/cf/Imake.tmpl
As the software has subdirectories containing other Imakefiles I typed -
xmkmf -a . .
and I got these messages
mv -f Makefile Makefile.bak
imake -I./config/cf -DTOPDIR=. -DCURDIR=.
In file included from Imakefile.c:34:0:
./config/cf/Imake.tmpl:33:0: fatal error: site.def: No such file or directory
#include <site.def>
^compilation terminated.
imake: Exit code 1.
Stop.
The thing is site.def does exist and is located under config/project/site.def
This is the contents of Imakefile.c that is generated by the execution of imake. This file is removed when imake finishes execution but can be retained by creating a link to that file.
Iam building some software(currently unsupported) that uses Imakefiles. The software does have a Imake.tmpl file. It is located (relative to the top directory)
config/cf/Imake.tmpl
As the software has subdirectories containing other Imakefiles I typed -
xmkmf -a . .
and I got these messages
mv -f Makefile Makefile.bak
imake -I./config/cf -DTOPDIR=. -DCURDIR=.
In file included from Imakefile.c:34:0:
./config/cf/Imake.tmpl:33:0: fatal error: site.def: No such file or directory
#include <site.def>
^compilation terminated.
imake: Exit code 1.
Stop.
The thing is site.def does exist and is located under config/project/site.def
This is the contents of Imakefile.c that is generated by the execution of imake. This file is removed when imake finishes execution but can be retained by creating a link to that file.
You need to read the "Question Guidelines" link in my posting signature. We can try to help, but we need actual details before we can do so. You don't tell us what this 'software' is, version/distro of Linux, etc. Further, most downloaded packages have installation instructions either on their website, in a README or INSTALL file, or SOMEWHERE in what you download...they don't leave yo to guess.
Those are the instructions you need to find and read.
Welcome to LQ.
? What's the name of the program you are trying to build ?
? Is imake installed ? → sudo apt install xutils-dev
"site.def" : /usr/lib/X11/config/site.def
...and...
Quote:
Originally Posted by AwesomeMachine
It looks like line 33 in imake.tmpl is looking for site.def.
Yep...asked the OP that in my first reply. I'd strongly suspect that the program the OP downloaded either has instructions on their website, or in the README/INSTALL/SOME file that came with the downloaded code. It's extremely rare for a program these days to come without such things. While they may have to edit/modify a file to point to the right site.def (or whatever), those instructions will be somewhere, and tell them what to do.
Sorry for the late response. I did not download it from a website. It was given to me by an associate. The software is no longer supported by the org that developed it so it is only kept in archives.
imake is definitely installed on my system. I moved site.def from the directory config/project to config/cf. That helped me compile the file and move on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.