LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-19-2009, 07:06 PM   #1
bluepepsi
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Rep: Reputation: 0
64bit Centos: need to run 32bit applications.


I am new to Linux, but I had no choice when I was buying my server box.

My problem is that I can not install my hl1 (Half Life) server since it is a 32bit application. I have googled it and did not find anything helpful. I now understand that I need to install some 32bit libs but I do not know what exactly to run in the command prompt.

The hldsupdatetool.bin (the tool with what i can install the game server) can be found here, http://www.steampowered.com/download/hldsupdatetool.bin .

And please tell me what EXACTLY I need to type in the command prompt, since I am new to linux.

Thanks in advance
 
Old 09-19-2009, 08:33 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
You had no choice? Well, I can understand that. But you do now. The computer I'm typing on shipped with Windows Vista -- what a larf, right! I turned its nobs for about an hour, stood up, made a cup of tea, and then Got Serious About Computing.

My point is, you can install another version of Linux if you want. Can't you? You'll have better luck finding out about "Supported Linux" flavours for those proprietary binaries by looking directly at the software vendor's documents. (Steam or whoever.)
 
Old 09-19-2009, 10:36 PM   #3
bluepepsi
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks, but this is not my question.

The company I am renting the server from provides only Centos 64bit. I know that it is possible to do, but unfortunately I do not know how.

Documentation? What documentation?

-Alex
 
Old 09-19-2009, 11:04 PM   #4
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
aha, well perhaps i should have said originally this instead: try installing the 32-bit compatibility system libraries:

Code:
sudo yum install ia32-libs
The package has a different name accross distributions, I think that's what centos calls it anyway.
 
Old 09-19-2009, 11:16 PM   #5
bluepepsi
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jhwilliams View Post
aha, well perhaps i should have said originally this instead: try installing the 32-bit compatibility system libraries:

Code:
sudo yum install ia32-libs
The package has a different name accross distributions, I think that's what centos calls it anyway.
Centos doesn't have that library. I have tried,
Quote:
yum install glibc
and it did not work either. Although the package does exist.

Do you know where can I download the libraries?
 
Old 09-19-2009, 11:22 PM   #6
ak@shdubey
LQ Newbie
 
Registered: Sep 2009
Location: India
Distribution: Redhat/Oracle Ent/CentOS
Posts: 28
Blog Entries: 1

Rep: Reputation: 16
Thumbs up Yes 64Bit & 32Bit both are supported by CentOS5 & above

Hi Blue,

Could you provide with exact version & arch of your centos,
# uname -a
#arch
will do

In Redhat EL 64 Bit OS supports 64 Bit as well as 32 Bit apps, Redhat guys call it Multilib support.
How does it happen - Redhat OS by default is installed with 64Bit Libs in usually /usr/lib64 or /lib64 & allows users to
store 32BIt libs in either /lib or /usr/lib .


NOTE - File system layout ( scraped from http://www.redhat.com/magazine/009ju...ures/multilib/)
A 64-bit operating system provides libraries compiled for the newer instruction set. To run a dynamically-linked 32-bit
binary application, any libraries it needs must also be available in the 32-bit instruction set. Also, any libraries those
libraries are dynamically linked against need to be available in that form, right down to the C library itself (such as glibc
on GNU systems).

So, to run 32-bit programs on a 64-bit system, two flavors of the C library (and more libraries besides) need to be provided
by the operating system, and these extra libraries need to reside somewhere in the file system. Multiple instances of a
particular library, each for a different instruction set supported by the processor, is often known as multilib.


So after reading notes it is much clear that we are trying an untested soln (specifically for CentOS)

Since Centos says itself to be 100% compliant to Redhat let us try in a test/staging server with following steps,

1.On your home machine install a replica of your latest rental server with CentOS, I would suggest create a VM instead of raw
install( try out http://www.virtualbox.org/)
2. Take a backup of 32bit lib files(it should be everything under /usr/lib & /lib) folder from your existing Fedora8 install
3.Move this backup to your CentOS VM under 32 bit lib folder ( you got to checkout if it is /usr/lib & /lib OR /usr/lib32 &
/lib32, I am assuming that it is /lib & /usr/lib).
4.and try running your apps one by one ( I know you have to install your targeted 32Bit Apps too on this test machine,
but at least we could be sure of not messing the production server if this test fails )



Here below are the references I have gone through

http://www.centos.org/modules/newbb/...r=DESC&start=0
Redhat paper on "multilib" architecture support - http://www.redhat.com/magazine/009ju...ures/multilib/


Best of luck !

-Akash
 
Old 09-19-2009, 11:43 PM   #7
bluepepsi
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ak@shdubey View Post
Hi Blue,

Could you provide with exact version & arch of your centos,
# uname -a
#arch
will do

In Redhat EL 64 Bit OS supports 64 Bit as well as 32 Bit apps, Redhat guys call it Multilib support.
How does it happen - Redhat OS by default is installed with 64Bit Libs in usually /usr/lib64 or /lib64 & allows users to
store 32BIt libs in either /lib or /usr/lib .


NOTE - File system layout ( scraped from http://www.redhat.com/magazine/009ju...ures/multilib/)
A 64-bit operating system provides libraries compiled for the newer instruction set. To run a dynamically-linked 32-bit
binary application, any libraries it needs must also be available in the 32-bit instruction set. Also, any libraries those
libraries are dynamically linked against need to be available in that form, right down to the C library itself (such as glibc
on GNU systems).

So, to run 32-bit programs on a 64-bit system, two flavors of the C library (and more libraries besides) need to be provided
by the operating system, and these extra libraries need to reside somewhere in the file system. Multiple instances of a
particular library, each for a different instruction set supported by the processor, is often known as multilib.


So after reading notes it is much clear that we are trying an untested soln (specifically for CentOS)

Since Centos says itself to be 100% compliant to Redhat let us try in a test/staging server with following steps,

1.On your home machine install a replica of your latest rental server with CentOS, I would suggest create a VM instead of raw
install( try out http://www.virtualbox.org/)
2. Take a backup of 32bit lib files(it should be everything under /usr/lib & /lib) folder from your existing Fedora8 install
3.Move this backup to your CentOS VM under 32 bit lib folder ( you got to checkout if it is /usr/lib & /lib OR /usr/lib32 &
/lib32, I am assuming that it is /lib & /usr/lib).
4.and try running your apps one by one ( I know you have to install your targeted 32Bit Apps too on this test machine,
but at least we could be sure of not messing the production server if this test fails )



Here below are the references I have gone through

http://www.centos.org/modules/newbb/...r=DESC&start=0
Redhat paper on "multilib" architecture support - http://www.redhat.com/magazine/009ju...ures/multilib/


Best of luck !

-Akash
Thanks for replying, but as I have said. I am new to linux so that means nothing to me. I really do not understand what are you suggesting me to do.
 
Old 09-19-2009, 11:54 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
I would be most surprised if Centos wasn't multi-lib.
Open a terminal, and enter these commands and post (all) the output
Code:
uname -a
ls / -l
 
Old 09-20-2009, 12:56 AM   #9
bluepepsi
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
For uname -a, i got this
Quote:
Linux server.xxxx.com 2.6.29.5-grsec-hostnoc-4.2.0-i386-libata #1 SMP Wed Jul 8 17:07:07 EDT 2009 i686 i686 i386 GNU/Linux
For ls / -l, i got this
Quote:
total 14426
drwxr-xr-x 2 root root 4096 Sep 19 04:02 bin
drwxr-xr-x 4 root root 1024 Sep 10 15:50 boot
drwxr-xr-x 10 root root 3620 Sep 19 20:45 dev
drwxr-xr-x 92 root root 12288 Sep 19 20:52 etc
drwxrwxrwx 8 root root 4096 Sep 19 00:14 home
drwxr-xr-x 13 root root 4096 Sep 19 04:02 lib
drwx------ 2 root root 16384 Sep 10 11:38 lost+found
drwxr-xr-x 2 root root 4096 Mar 9 2009 media
drwxr-xr-x 2 root root 0 Sep 19 20:45 misc
drwxr-xr-x 2 root root 4096 Mar 9 2009 mnt
drwxr-xr-x 2 root root 0 Sep 19 20:45 net
drwxr-xr-x 2 weed root 4096 Mar 9 2009 opt
dr-xr-xr-x 136 root root 0 Sep 19 16:45 proc
drwxr-x--- 6 weed root 4096 Sep 19 18:45 root
drwxr-xr-x 2 root root 12288 Sep 10 17:12 sbin
drwxr-xr-x 2 weed root 4096 Sep 10 15:41 selinux
drwxr-xr-x 2 root root 4096 Mar 9 2009 srv
drwxr-xr-x 12 root root 0 Sep 19 16:45 sys
drwxrwxrwt 6 root root 4096 Sep 19 23:18 tmp
drwxr-xr-x 15 root root 4096 Sep 10 15:43 usr
drwxr-xr-x 24 root root 4096 Sep 19 20:52 var
-rw-r--r-- 1 root root 14598849 Feb 8 2008 webmin-1.400-1.noarch.rpm
 
Old 09-20-2009, 02:24 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Which raises the question - what makes you think it's 64-bit ?. Try this and post the result
Code:
readelf -h $(which init) | grep "Class"
 
Old 09-20-2009, 06:20 AM   #11
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by bluepepsi View Post
My problem is that I can not install my hl1 (Half Life) server since it is a 32bit application.
What error message did you get when you tried to install that?
You can install a 32 bit application on 64 bit Centos and you apparently have 32 bit Linux anyway, so your diagnosis of the problem is doubly wrong.

You may be missing files that hl1 needs. If so and if the error messages tell you which files are missing, there is a yum to find out what package (if any) provides that file and another yum command to install the package.

Generally the yum commands must be given as root. I would expect the hl1 server install to also need to be done as root. Perhaps not installing as root was your problem. With no error messages quoted we can't do better than wild guesses.
 
Old 09-20-2009, 02:08 PM   #12
bluepepsi
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Which raises the question - what makes you think it's 64-bit ?. Try this and post the result
Code:
readelf -h $(which init) | grep "Class"

Code:
Class:                             ELF32


Quote:
Originally Posted by johnsfine View Post
What error message did you get when you tried to install that?
You can install a 32 bit application on 64 bit Centos and you apparently have 32 bit Linux anyway, so your diagnosis of the problem is doubly wrong.

You may be missing files that hl1 needs. If so and if the error messages tell you which files are missing, there is a yum to find out what package (if any) provides that file and another yum command to install the package.

Generally the yum commands must be given as root. I would expect the hl1 server install to also need to be done as root. Perhaps not installing as root was your problem. With no error messages quoted we can't do better than wild guesses.

When I run the installer, it asks me accept the agreement:
Quote:
Enter 'yes' to accept this agreement, 'no' to decline:
When I enter yes, I get the following:

Code:
sh: uncompress: command not found
 
Old 09-20-2009, 10:13 PM   #13
ak@shdubey
LQ Newbie
 
Registered: Sep 2009
Location: India
Distribution: Redhat/Oracle Ent/CentOS
Posts: 28
Blog Entries: 1

Rep: Reputation: 16
post installer script

Blue,
It looks like our install script tries to execute an "uncompress" command which is not be found existing in CentOS..

Could you post installer script here?



-Akash
 
Old 09-20-2009, 10:56 PM   #14
bluepepsi
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Rep: Reputation: 0
All I can really provide is this, http://www.steampowered.com/download/hldsupdatetool.bin . I don't see any other files.
 
Old 09-20-2009, 11:55 PM   #15
ak@shdubey
LQ Newbie
 
Registered: Sep 2009
Location: India
Distribution: Redhat/Oracle Ent/CentOS
Posts: 28
Blog Entries: 1

Rep: Reputation: 16
Quote:
Originally Posted by bluepepsi View Post
All I can really provide is this, http://www.steampowered.com/download/hldsupdatetool.bin . I don't see any other files.
Could be a lame question, but how do you run the installer file (hldsupdatetool.bin) on command prompt ?
Do you say -[root@localhost]# ./ hldsupdatetool.bin

it will be great if you can post screenshot of the complete output

meanwhile i am also downloading the .bin file once done i will execute it on my test machine ..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run 32bit apps on 64bit os ?? ride153 Linux - Software 9 03-21-2011 09:06 AM
RH EL5 64bit With 32bit Applications SteveT Red Hat 5 08-07-2008 06:52 AM
32bit applications installed on 64bit, apt fails. Marchsteiner Linux - Server 2 10-06-2006 05:32 AM
Cannot load DSO (32bit) in 64bit CentOS jasperphang Linux - Newbie 4 07-27-2006 04:56 AM
can 64bit processor run both 64bit and 32bit computers? DJOtaku Linux - General 4 09-08-2005 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration