LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2009, 04:56 AM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question 32-bit or 64-bit ??


Hi All,

How can we check that a particular installer for a software(any XXXX.bin installer)is a 32-bit or a 64-bit installer ??
Like "uname -a" will give OS related details, so how can we check the same thing for any installer in Linux ??


Thank You in advance,
Kapil
 
Old 02-27-2009, 04:59 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
It depends on the installer.
Read the README file that came with the package if there is one.
Check the web site where you download the package.
Ask the author of the package.
Try to execute it.

Anyway, usually you should avoid the XXX.bin installers and use your package manager instead.
 
Old 02-27-2009, 05:13 AM   #3
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Question

Hi There,

Thank you for the reply. But i think you don't get my point right...let me explain it in detail for you...
I am having Genespring.exe and Genespring.bin installers for windows and linux machines respec. I can install the software on windows without any problem, but on linux i got error that few libraries are missing. I want to check whether it is a 32-bit or a 64-bit installer for linux ???

Hope that now I am a bit clear...
Thank You again,
kapil.

Quote:
Originally Posted by Agrouf View Post
It depends on the installer.
Read the README file that came with the package if there is one.
Check the web site where you download the package.
Ask the author of the package.
Try to execute it.

Anyway, usually you should avoid the XXX.bin installers and use your package manager instead.
 
Old 02-27-2009, 05:25 AM   #4
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Use the `file' command.

Example:

Code:
file /usr/bin/dir
Quote:
/usr/bin/dir: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
The same, on a 64-bit server:

Quote:
/usr/bin/dir: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
If it is a packaged installer that has the actual data compressed in the sh file (sometimes with .run extension), then it might be found inside the file itself, example of an nVIDIA installer:

Quote:
#! /bin/sh
skip=1020
CRCsum=4253242100
MD5=f7eaf3661fd0e8ddb3d6c2fb411e1b06
label="NVIDIA Accelerated Graphics Driver for Linux-x86 173.08"
version_string=173.08
pkg_version=1
script=./nvidia-installer
targetdir=NVIDIA-Linux-x86-173.08-pkg1
scriptargs=""
keep=n
add_this_kernel=n
apply_patch=n
TMPROOT=${TMPDIR:=/tmp}
TARGET_OS="Linux"
TARGET_ARCH="x86"
Alternatively, there's usually an option to tell it to extract the files without running the installer, after doing that, you can run the file utility on the binary.

Last edited by x_terminat_or_3; 02-27-2009 at 05:27 AM. Reason: Mismatched quote tag
 
Old 02-27-2009, 05:31 AM   #5
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Incidentally, if it says it is missing some libraries, you can try to determine which ones they are, by using the ldd tool.

Example:

Code:
ldd /usr/bin/dir
Quote:
linux-gate.so.1 => (0x00cc9000)
librt.so.1 => /lib/librt.so.1 (0x0083b000)
libselinux.so.1 => /lib/libselinux.so.1 (0x00738000)
libcap.so.2 => /lib/libcap.so.2 (0x00ae7000)
libacl.so.1 => /lib/libacl.so.1 (0x00364000)
libc.so.6 => /lib/libc.so.6 (0x0041a000)
libpthread.so.0 => /lib/libpthread.so.0 (0x005c2000)
/lib/ld-linux.so.2 (0x003f1000)
libdl.so.2 => /lib/libdl.so.2 (0x005bb000)
libattr.so.1 => /lib/libattr.so.1 (0x00146000)
If one of them listed is not available, it will mark them as `missing'
 
Old 02-28-2009, 03:27 PM   #6
cloud9repo
Member
 
Registered: Oct 2008
Location: Middle TN
Posts: 134

Rep: Reputation: 19
Usually indicated with a -32 or -64 in the file name, and 64-bit can run via the proper libraries 32-bit code.

As far as checking individual prog's, you could decompile and check with an interpreter, but that's tedious.

Most .bin progs are custom installers, where the download site clearly stipulates (unless spoofed) how to install.

Here's the short of it, if the program won't execute, there's no viable command switch that will magically run when executed...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 02:02 PM
64-bit or 32-bit Application on 64-bit Linux jjana123 Linux - General 4 05-06-2008 05:27 PM
Triple Boot Suse 10.3 32 bit, suse alpha 11.0 64 bit and Windows XP (32 Bit) 1kyle SUSE / openSUSE 1 02-28-2008 10:25 AM
Integrated 16-bit Sound Blaster Pro compatible audio 24-bit DAC jelgavchik Linux - Laptop and Netbook 2 11-16-2006 09:20 PM
32 bit or 64 bit install - is 32 bit easier for a newbie? dms05 Linux - Newbie 3 05-19-2006 03:05 PM


All times are GMT -5. The time now is 08:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration