gcc problem when compiling many games
Hi,
I am getting an error about gcc cannot create executables, I think it is a package I don't have installed. I think this because it works on other things. It says this when I try ./configure on one moo: Quote:
Quote:
-Michael. P.S. I am using ubuntu 9.10. |
I believe you're missing binutils
cheers |
Oh man, it appears I already have binutils.
Quote:
|
Ooops .. my mistake, according to my system /lib/ld-linux.so.2 belongs to glibc, can you verify the validity of your glibc package ? .. I'm not sure what the command is on your system
cheers |
Hi
On Ubuntu systems, the package to install is "build-essential". |
Quote:
That is a common question and you should learn the generic answer, even though in this case Guttorm gave you a better specific answer. Bookmark this page: http://packages.ubuntu.com/ Scroll down to where it says Search the contents of packages Paste the name of the missing file into the box there (I pasted in ld-linux.so.2 Click Search. That brought me to a page that tells me the package name is libc6 In this particular situation, I think it is better to install build-essential. If you installed libc6, I expect that would fix the problem with ld-linux.so.2 and just get you to the next missing file toward what you want to accomplish. A few rounds of that would get the job done. But installing build-essential is easier and better. |
Hi,
I installed build-essentials I also tried installing libc6, but it said it was already the latest version. It still gives an error, it looks like the same error. Anyway, just in case it isn't. here it is: Quote:
This mentions something about /usr/ld, could that be a problem? -Michael. |
very interesting
Hi,
I just did, out of curiosity, sudo ./configure It, to my utter amazement, worked. I wonder why you can run it as root, and it works, but you can't as a user? -Michael. |
That is all confusing. It is not supposed to act that way.
Try Code:
ls -l /lib/ld* Code:
file /lib/ld* If the access rights are limited enough, you might need to sudu just to get that info. On every system I've used, all that is world readable. |
maybe the configure script is loading from an old cache?
|
May be
sudo apt-get install libc6-dev .. Or use 'synaptic' for the install 'gcc' really can't create much without this. Also suggested : sudo apt-get install g++ ..... P.S.: # 10 Quote:
..... |
Hi,
When I do ls -l /lib/ld*, it returns this: Quote:
Quote:
-Michael. |
Quote:
/usr/bin/ld is the name of the program that is complaining about the lack of /lib/ld-linux.so.2 But you have shown that /lib/ld-linux.so.2 is readable by non root. /lib/ld-linux.so.2 is a symbolic link to /lib/ld-2.10.1.so and /lib/ld-2.10.1.so is the 32 bit ELF file it ought to be (assuming you are running 32 bit Ubuntu, not 64 bit Ubuntu). I don't even have a guess why /usr/bin/ld can find /lib/ld-linux.so.2 when run as root but not when run as non root. |
Hi,
I'm sorry, I thought you meant that I should run ls -l /lib/ld* and file /lib/ld* with sudo, sorry. Still, the output appears to be the same without sudo. Here it is, anyway. Quote:
Also, I tried apt-get install libc6-dev, and apt-get install g++, and they both returned that they are already the latest version. Now, I just tried to ./configure on another user, same perms, same group, everything, and, to my disbelief, it worked! Is there any flag I might need to set on a user to get this to work? If you aren't sure, is there a way I can compare their attributes, and see what's different? And then, how can I change the attributes. Thanks, -Michael. |
Hi,
I was wondering if there is a way to check flags, and other things of a user, so I can see if there is something different between the user that can compile the server, and that one that can't. Thanks, -Michael. |
All times are GMT -5. The time now is 10:04 PM. |