UrbanFallout
August 27th, 2005, 04:42 AM
Hi everyone
I thought this may be useful to anyone out there who had difficulty installing Heroes of Might and Magic 3 (HOMM3) on an AMD 64 platform, because the install script kept quitting with the error message:
This installation doesn't support glibc-2.1 on x86_64
The error occurs because there are individual installer binaries for each architecture, stored in the directory structure on the CD. Of course only an "x86" subdirectory exists. The installer uses uname -m to check the architecture and then aborts when the "x86_64" directory is not found.
A simple work-around is to temporarily replace the uname binary with one that will output "x86". Here's how:
1. gedit ~/uname.cc
2. Paste following code into the file you're editing:
#include <iostream>
int main( int argc, char *argv[] )
{
std::cout<<"x86\n";
return 0;
}
3. save and exit
4. g++ ~/uname.cc -o ~/uname
5. sudo mv /bin/uname /bin/uname.bu
6. sudo cp ~/uname /bin/uname
7. Install HOMM3 using "sh setup.sh"
8. sudo mv /bin/uname.bu /bin/uname
9. rm ~/uname*
10. Enjoy...
This work around may help with other games.
Cheers
Nick
I thought this may be useful to anyone out there who had difficulty installing Heroes of Might and Magic 3 (HOMM3) on an AMD 64 platform, because the install script kept quitting with the error message:
This installation doesn't support glibc-2.1 on x86_64
The error occurs because there are individual installer binaries for each architecture, stored in the directory structure on the CD. Of course only an "x86" subdirectory exists. The installer uses uname -m to check the architecture and then aborts when the "x86_64" directory is not found.
A simple work-around is to temporarily replace the uname binary with one that will output "x86". Here's how:
1. gedit ~/uname.cc
2. Paste following code into the file you're editing:
#include <iostream>
int main( int argc, char *argv[] )
{
std::cout<<"x86\n";
return 0;
}
3. save and exit
4. g++ ~/uname.cc -o ~/uname
5. sudo mv /bin/uname /bin/uname.bu
6. sudo cp ~/uname /bin/uname
7. Install HOMM3 using "sh setup.sh"
8. sudo mv /bin/uname.bu /bin/uname
9. rm ~/uname*
10. Enjoy...
This work around may help with other games.
Cheers
Nick