473,494 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Compiling python from soruce vs RPM ?

I have compiled python 2.5 from source

i.e.

../configure
make
make install
but when i try to install another package require python, seems it
can't regonize python...

e.g..
/usr/bin/python is needed by xyz

Apr 18 '07 #1
6 1233
howa wrote:
I have compiled python 2.5 from source

i.e.

./configure
make
make install
but when i try to install another package require python, seems it
can't regonize python...

e.g..
/usr/bin/python is needed by xyz
Does "/usr/bin/python" exist ?

Why haven't you installed via rpm ?

H.

Apr 18 '07 #2
howa wrote:
I have compiled python 2.5 from source

i.e.

./configure
make
make install
By default, configure uses /usr/local as the "prefix", not /usr...
but when i try to install another package require python, seems it
can't regonize python...

e.g..
/usr/bin/python is needed by xyz
Consequently, by default, Python will be found at /usr/local/bin/
python, not /usr/bin/python as you seem to require. Try building from
source again:

make clean # probably needed if rebuilding in the same place
../configure --prefix=/usr
make
make install

Since /usr/bin/python isn't found, it doesn't look like there's an
existing version of Python that you might overwrite, but it's
important to verify such things when installing software. That's where
your distribution's packages have an advantage, and it's arguably a
better idea to install such packages instead, possibly building them
from source if no binary packages exist yet for Python 2.5. (If no
source packages exist, you have a bit more work to do.)

Paul

Apr 18 '07 #3
On Apr 19, 6:10 am, Paul Boddie <p...@boddie.org.ukwrote:
>
Since /usr/bin/python isn't found, it doesn't look like there's an
existing version of Python that you might overwrite, but it's
important to verify such things when installing software. That's where
your distribution's packages have an advantage, and it's arguably a
better idea to install such packages instead, possibly building them
from source if no binary packages exist yet for Python 2.5. (If no
source packages exist, you have a bit more work to do.)

Paul

Thanks.
One more question:

How to uninstall using the source package?

the source package doesn't come with `make uninstall`?


Apr 19 '07 #4
On 19 Apr, 04:39, howa <howac...@gmail.comwrote:
>
One more question:

How to uninstall using the source package?

the source package doesn't come with `make uninstall`?
Right. That's another pitfall of most source distributions (ie. the
Python sources from python.org) compared to system packages (ie. the
package built from a source RPM or equivalent system source package).
If you want a really quick solution to this which seems to work much
of the time, look at checkinstall:

http://asic-linux.com.mx/~izto/checkinstall/

This tool will make system packages by taking control of the usual
build process, and you can then install and uninstall those system
packages.

Paul

Apr 19 '07 #5
On 4¤ë19¤é, ¤U¤È5®É49¤À, Paul Boddie <p...@boddie.org..ukwrote:
On 19 Apr, 04:39, howa <howac...@gmail.comwrote:
One more question:
How to uninstall using the source package?
the source package doesn't come with `make uninstall`?

Right. That's another pitfall of most source distributions (ie. the
Python sources from python.org) compared to system packages (ie. the
package built from a source RPM or equivalent system source package).
If you want a really quick solution to this which seems to work much
of the time, look at checkinstall:

http://asic-linux.com.mx/~izto/checkinstall/

This tool will make system packages by taking control of the usual
build process, and you can then install and uninstall those system
packages.

Paul
but i have the source package being installed...so any method/script
to remove them?

since finally i want to install via RPM ...

thanks anyway

Apr 19 '07 #6
On 19 Apr, 18:40, howa <howac...@gmail.comwrote:
>
but i have the source package being installed...so any method/script
to remove them?

since finally i want to install via RPM ...
You could use checkinstall to make a package, install it (forcibly if
necessary), then remove it. That might wipe away the things installed
when you did "make install" since checkinstall should note which files
were to be installed, add them to its manifest, then construct the
package such that those files will be removed when the package is
uninstalled.

No promises, though...

Paul

Apr 19 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4914
by: Joonas Paalasmaa | last post by:
Hi, When compiling Sketch's streamfilter C extension the errors below are raised during linking. What could cause the errors? (Python 2.3, MinGw 1.1 with GCC 2.95.3-6, Windows 98) Here are...
0
1664
by: Johnathan Doe | last post by:
I've been thinking about what the issues would be in compiling Python into native machine code, and since type information is important in Python, it seems possible that Python code can be...
6
2336
by: Dan Ellis | last post by:
Hi, I've been down so many dead ends trying to get something working, so I'm really hoping someone can help out. I need to access an Oracle database running on a Windows server from Python...
29
3394
by: Maurice LING | last post by:
Hi, I remembered reading a MSc thesis about compiling Perl to Java bytecodes (as in java class files). At least, it seems that someone had compiled scheme to java class files quite successfully....
6
6147
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
0
1697
by: mmarkzon | last post by:
I have been struggling compiling linkchecker from http://linkchecker.sourceforge.net/. The last thing I get is "error: command 'gcc' failed with exit status 1" which is not very helpful. This is...
0
1443
by: phoolimin | last post by:
Dear all, I am trying to embed python into another scripting language, to do this I need to solve a number of problems on importing or compiling python script. First let me state what exactly I...
2
2279
by: metaperl | last post by:
I've tried both Python 2.4.4 and Python 2.5. I'm trying to build from source and install under a local directory Swarm since OpenSwarm requires builds of Postgres and Python under it's control. ...
11
2540
by: ZMY | last post by:
Dear all, I am a real newbie for both python and QNX, but I am still trying to compile Numeric-24.2 under QNX4.25 with python 2.2. I got following error message: $ sudo python setup.py...
0
7119
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6873
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.