tags:

views:

51

answers:

2

How do I check if my python and mysql are 32 bit installations or 64 bit?

+2  A: 
readelf -h $(which mysqld) | grep Class
readelf -h $(which python) | grep Class

Seems to work for me. The readelf command is part of the GNU binutils.

André Laszlo
+3  A: 

You can use the file command :

file `which python`

file `which mysql`

The file command is available on all UNIX-based systems.

Studer