cant install a software from its source file

Asked by makk

i downloaded the .tar.gz file for gl chess
extracted the source file with tar xvf <fn.tar.gz>
then cd <path of the extracted source>
then the ls revealed:
BUGS
ChangeLog
chess
chess1
COPYING
data
debian
glade
glchess
INSTALL
lib
Makefile
MANIFEST.in
opt
PKG-INFO
po
README
setup.py
tests
TODO

so i read the INSTALL file which revealed :
glChess does not have to be compiled/installed to run.

To run excute the following in this directory:
$ PYTHONPATH=lib/ ./glchess

To make a Debian/Ubuntu package:
$ dpkg-buildpackage -rfakeroot

To make a source distribution
$ python setup.py sdist

so i issued the command PYTHONPATH=lib/ ./glchess
which gave the folling error:
bash: ./glchess: /usr/bin/python2.4: bad interpreter: No such file or directory

which i didnt understand.i m new to linux plz tell me where i went wrong
thanx

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu glchess Edit question
Assignee:
No assignee Edit question
Solved by:
makk
Solved:
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

No need to install from source code. Run the following commands to install glchess:

sudo aptitude update
sudo aptitude install glchess

glchess is in the Ubuntu 9.10 repositories.

Revision history for this message
makk (mahak-vmukhi) said :
#2

but i want to learn how to install from tarballz

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#3

You could try this workaround procedure:

http://www.linuxquestions.org/questions/slackware-14/cannot-install-glchess-678988/

Still, it is a bad idea to install from tarballs when there is an Ubuntu package available for Ubuntu 9.10

You are encountering the error "./glchess: /usr/bin/python2.4: bad interpreter: No such file or directory", because the tarball is probably obsolete and does not let you know which packages it depends on, in order to be able to work. It seems to be depending on an older version of python (version 2.4), but Ubuntu 9.10 is currently using python version 2.6 !

$ ls -lart /usr/bin/python
lrwxrwxrwx 1 root root 9 2009-11-04 18:26 /usr/bin/python -> python2.6
$

That is why Ubuntu has a package management system, to figure out the dependency hell for you....

Revision history for this message
Vikram Dhillon (dhillon-v10) said :
#4

I wouldn't recommend installing software from source if you are a
novice user, but your python version is old post back the output of
uname -a

Regards,
Vikram

On Thu, Nov 26, 2009 at 7:11 AM, Mark Rijckenberg
<email address hidden> wrote:
> Question #91803 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/91803
>
>    Status: Open => Answered
>
> Mark Rijckenberg proposed the following answer:
> You could try this workaround procedure:
>
> http://www.linuxquestions.org/questions/slackware-14/cannot-install-
> glchess-678988/
>
> Still, it is a bad idea to install from tarballs when there is an Ubuntu
> package available for Ubuntu 9.10
>
> You are encountering the error "./glchess: /usr/bin/python2.4: bad
> interpreter: No such file or directory", because the tarball is probably
> obsolete and does not let you know which packages it depends on, in
> order to be able to work. It seems to be depending on an older version
> of python (version 2.4), but Ubuntu 9.10 is currently using python
> version 2.6 !
>
> $ ls -lart /usr/bin/python
> lrwxrwxrwx 1 root root 9 2009-11-04 18:26 /usr/bin/python -> python2.6
> $
>
> That is why Ubuntu has a package management system, to figure out the
> dependency hell for you....
>
> --
> You received this question notification because you are an answer
> contact for Ubuntu.
>

Revision history for this message
Sam_ (and-sam) said :
#5
Revision history for this message
makk (mahak-vmukhi) said :
#6

hey thanx guys...
eventually i came to know abt the dependency issues and that now i do realize itz a lot easier n better from apt-get
thanx