Hi gurus
I am trying to compile coreutils for studying purposes. I downloaded package (exact version which target system already contains) and tried following:
but compiling ands with some header file dependency problem. Then I tried compile particular binary
also tried
But there was also missing header files problem.
So I tried to find particular file on system and link to /usr/include location for example:
maybe further more header files I dont know - but the result is the same header file problem.
I tried the metioned procedure on Archbang and Fedora (on both the coreutils was the same version whih is already installed and is working properly)
If you tell us what it actually did, maybe we can actually help you. But my crystal ball is still in for maintenance so I can't tell you why those errors were happening, or what they even were. "some header file dependency problem" doesn't cut it. There might be reasons you're missing a specific header. I can't tell you why you might be missing any random header.
Please don't throw random symlinks into /usr/include. Take out the ones you put before you forget where they are. They'll come back to haunt you later.
If you tell us what it actually did, maybe we can actually help you. But my crystal ball is still in for maintenance so I can't tell you why those errors were happening, or what they even were. "some header file dependency problem" doesn't cut it. There might be reasons you're missing a specific header. I can't tell you why you might be missing any random header.
Please don't throw random symlinks into /usr/include. Take out the ones you put before you forget where they are. They'll come back to haunt you later.
Thank you for reply
symlinks from /usr/include is removed.
Are you sure that ./configure succeeded? config.h is one of the files that ought to be autogenerated by it. Run ./configure again and check closely if it bombs out.
Also, run 'make' from the base directory where you extracted that, not basedir/src. The base makefile might have exported something important.
Hi gurus
I am trying to compile coreutils for studying purposes. I downloaded package (exact version which target system already contains) and tried following:
but compiling ands with some header file dependency problem. Then I tried compile particular binary
also tried
But there was also missing header files problem.
So I tried to find particular file on system and link to /usr/include location for example:
maybe further more header files I dont know - but the result is the same header file problem.
I tried the metioned procedure on Archbang and Fedora (on both the coreutils was the same version whih is already installed and is working properly)
Thanks a lot
would be nice if you paste the result of the configure script. Also check the exit status and try to locate the "missing header" using a simple find if you can find it.
Hi people - sorry for long response
I tried that:
Seems make works. This package has been installed since last post.
Also two questions
- is it possible to compile only specific binary ? (id.c uniq.c cat.c etc) and not whole package ?
- where to find another packages that I can compile from source ? for example passwd command ?
I tried to search for passwd-0.78-1.fc14.i686 tar gz but no luck
- is it possible to compile only specific binary ? (id.c uniq.c cat.c etc) and not whole package ?
id.c, cat.c, and uniq.c aren't binaries so you're barking up the wrong tree. You're also assuming all the source code for id resides in id.c and so forth, which isn't necessarily true, they may have other source files in common.
You might try 'cd src ; make id'
Quote:
- where to find another packages that I can compile from source ? for example passwd command ?
Just as the 'id' utility doesn't reside in id-0.78-1.fc14.i686.tar.gz, not every individual program has its own tiny individual package. I think passwd belongs to the shadow password tools.
Last edited by Corona688; 03-13-2011 at 03:00 PM..
I was trying to compile a proc code. All steps when fine, except the last step which threw an error -
I was just trying to compile it manually. Any ideas what this error means. Does it mean I am using the wrong library? (3 Replies)
I have a problem.
How can I be sure that the binary currently in production is the binary originally produced by the compiler? I ask because recompiling the sources (ALL sources + stripping away the metadata: strip ...) does not give the same result.
I am pretty sure that I wasn't hacked!
... (5 Replies)
I am new to unix so please forgive ignorance. I am running openbsd-2.9 and need some help. All the software I run was added via the package system openbsd has. There have been times when I need an app. But it was not in the openbsd ports and or packages system. I usually just wait for it to show up... (1 Reply)
i am trying to compile and install free qt for x11 2.2.4 in order to use kde 2.1. i'm using freebsd 4.3
i currently have XFree86 installed and working.
i followed these instructions:
ftp://ftp.trolltech.com/qt/source/INSTALL
i get through the unpacking fine and i set my .profile.
--... (2 Replies)
would anyone know of a good online tutorial on compiling and installing tarballs? i'm looking for one that assumes that you know very little to nothing about unix. (3 Replies)
I recently loaded SuSE on my intel comp.
I am presently taking a walk down memory lane from my days at UofT.
I was fiddling round with cc and the gcc compilers.
I wrote a basic basic basic program .
I tried to compile it as I remember doing in Uni. The problem is that it can't find the header... (5 Replies)