Install correct libraries depending on 64/32 bit
        Posted  
        
            by 
                Rich
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Rich
        
        
        
        Published on 2011-01-06T12:36:02Z
        Indexed on 
            2011/01/06
            12:55 UTC
        
        
        Read the original article
        Hit count: 191
        
bash-scripting
|cpu-architecture
I am using Bash to install a customised version of JBoss, and one of the things I would like to do is install the correct version of the Apache Portable Runtime, which is a native binary.
This script could be run on both 32 and 64 bit versions of RHEL.
What are my options for identifying which version of the APR to install?
I think we only have 32bit and x64-based systems here. I would still like to identify i64 systems so that the script can refuse to install on that type of machine.
I am aware of using uname -m and grepping /proc/cpuinfo to find out, but was wondering which approach others would recommend?
© Server Fault or respective owner