473,671 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installation Problem

I am trying to install python, but am having problems. I did what the
README file said, and it created an executible code in the current
directory as it said it would when I typed "make". It seemed to say to
copy the executable over to the /usr/local directory, which I did.

If I type ./python in the directory I did the make in I get:

execonn# ./python
Python 2.4.3 (#1, May 31 2006, 07:50:04)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright" , "credits" or "license" for more information.

Which is I believe correct.

But if I type /usr/local/python I get:

Python 2.4.3 (#1, May 31 2006, 07:50:04)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright" , "credits" or "license" for more information. execonn# /usr/local/python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Python 2.4.3 (#1, May 31 2006, 07:50:04)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright" , "credits" or "license" for more information.


So nothing that tries to use it works.

Any assistance would be appreciated.

Thanks,

Marshall

Jun 4 '06 #1
9 1406
Marshall Dudley wrote:
I am trying to install python, but am having problems. I did what the
README file said, and it created an executible code in the current
directory as it said it would when I typed "make".
"make" doesn't install the interpreter by itself; you're supposed to use
"make install" (or "make altinstall") to do that.

just copying the interpreter binary around won't give you a complete
install.
It seemed to say to copy the executable over to the /usr/local
directory, which I did.


the README says:

To start building right away (on UNIX): type "./configure" in the
current directory and when it finishes, type "make". This creates an
executable "./python"; to install in /usr/local, first do "su root"
and then "make install".

the detailed installation section says:

To install the Python binary, library modules, shared library modules
(see below), include files, configuration files, and the manual page,
just type

make install

/.../

</F>

Jun 4 '06 #2
Sorry, this is a FreeBSD system 4.8-RELEASE

I found another set of documents that say to use the following to
install::

python setup.py install

but after running it, I still have the same problem.

Marshall

Marshall Dudley wrote:
I am trying to install python, but am having problems. I did what the
README file said, and it created an executible code in the current
directory as it said it would when I typed "make". It seemed to say to
copy the executable over to the /usr/local directory, which I did.

If I type ./python in the directory I did the make in I get:

execonn# ./python
Python 2.4.3 (#1, May 31 2006, 07:50:04)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright" , "credits" or "license" for more information.

Which is I believe correct.

But if I type /usr/local/python I get:

Python 2.4.3 (#1, May 31 2006, 07:50:04)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright" , "credits" or "license" for more information. execonn# /usr/local/python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Python 2.4.3 (#1, May 31 2006, 07:50:04)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright" , "credits" or "license" for more information.


So nothing that tries to use it works.

Any assistance would be appreciated.

Thanks,

Marshall


Jun 4 '06 #3
Fredrik Lundh wrote:
Marshall Dudley wrote:
I am trying to install python, but am having problems. I did what the
README file said, and it created an executible code in the current
directory as it said it would when I typed "make".
"make" doesn't install the interpreter by itself; you're supposed to use
"make install" (or "make altinstall") to do that.

just copying the interpreter binary around won't give you a complete
install.
> It seemed to say to copy the executable over to the /usr/local
> directory, which I did.


the README says:

To start building right away (on UNIX): type "./configure" in the
current directory and when it finishes, type "make". This creates an
executable "./python"; to install in /usr/local, first do "su root"
and then "make install".


Yes, that is what I did. Since I ended up with no executable in /usr/local,
or /usr/local/bin and it said " This creates an
executable "./python" (which it did); to install in /usr/local" I copied
the one it created over to /usr/local, then later /usr/local/bin


the detailed installation section says:

To install the Python binary, library modules, shared library modules
(see below), include files, configuration files, and the manual page,
just type

make install

/.../

</F>


Yes, I typed "make install". But nothing gets put into /usr/local or
/usr/local/bin without me copying it over. And if I run python it in the
directory I unpacked it in, it works, but if I run the copy in /usr/local or
/usr/local/bin it does not.

I also tried the instuctions on their web site:

"python setup.py install"

But get the same result, but it copies and puts the following 3 files in the
/usr/local/bin dir.

-rwxr-xr-x 1 root wheel 96 May 31 07:50 idle
-rwxr-xr-x 1 root wheel 81 May 31 07:50 pydoc
-rwxr-xr-x 1 root wheel 18017 May 31 07:50 smtpd.py

Marshall

Jun 4 '06 #4
Marshall Dudley <md*****@king-cart.com> wrote:
Sorry, this is a FreeBSD system 4.8-RELEASE

I found another set of documents that say to use the following to
install::

python setup.py install

but after running it, I still have the same problem.


[top-posting trimmed, please don't do that]

Doesn't the port work for 4.8? It does work on FreeBSD 4.11, but there
may have been changes to the ports system since 4.8. (You should
consider updating to 4.11.)

There are several patch files in the FreeBSD port, including
one to setup.py.

The easiest way is to cvsup your ports tree and then

cd /usr/ports/lang/python
make
make install
make clean

--
Warren Block * Rapid City, South Dakota * USA
Jun 4 '06 #5
Warren Block wrote:
Marshall Dudley <md*****@king-cart.com> wrote:
Sorry, this is a FreeBSD system 4.8-RELEASE

I found another set of documents that say to use the following to
install::

python setup.py install

but after running it, I still have the same problem.


[top-posting trimmed, please don't do that]

Doesn't the port work for 4.8? It does work on FreeBSD 4.11, but there
may have been changes to the ports system since 4.8. (You should
consider updating to 4.11.)

There are several patch files in the FreeBSD port, including
one to setup.py.

The easiest way is to cvsup your ports tree and then

cd /usr/ports/lang/python
make
make install
make clean

--
Warren Block * Rapid City, South Dakota * USA


Now I have a python that runs, but the application I want to run it on
"denyhosts" gives me the following error:

Python >= 2.3 required. You are using: 2.2.2 (#1, Jun 4 2006, 16:29:13)
[GCC 2.95.4 20020320 [FreeBSD]]

############### ############### ############### ############### ##########

Visit http://www.python.org and download a more recent version of
Python.

You should install this version in addition to your current version
(rather than upgrading your current version) because your system might
depend on the current version. After installing the newer version, for
instance version 2.4, simply invoke DenyHosts explicitly with the new
version of python, eg:

$ python2.4 ./denyhosts.py

############### ############### ############### ############### ##########

Is it not possible to install the latest version of python on my FreeBSD
system? Upgrading the FreeBSD is not an option since this is a production
system and everything else is working fine.

Marshall

Jun 4 '06 #6
Marshall Dudley wrote:
Is it not possible to install the latest version of python on my FreeBSD
system? Upgrading the FreeBSD is not an option since this is a production
system and everything else is working fine.
that's really a FreeBSD question, isn't it?
You are using: 2.2.2 (#1, Jun 4 2006, 16:29:13)


Python 2.2.2 was originally released in 2002, but your copy was built
yesterday? did the FreeBSD source kit you got really contain a four
year old release? heck, it's not even the 2.2 release in the 2.2
series, and there's been two major releases since then.

are you sure you cannot get a *prebuilt* newer version from some FreeBSD
repository?

or if that's not possible, use the *standard* python.org source kit?
after all, it's known to build and install on virtually any modern Unix
or Unix-like system (and most non-Unix systems too), and you're free to
install it everywhere you want (and the default on Unix is /usr/local,
so you don't even have to read the README; just make sure you use the
real thing, instead of some botched FreeBSD-specific source kit).

</F>

Jun 5 '06 #7
Fredrik Lundh wrote:
Marshall Dudley wrote:
Is it not possible to install the latest version of python on my FreeBSD
system? Upgrading the FreeBSD is not an option since this is a production
system and everything else is working fine.
that's really a FreeBSD question, isn't it?
> You are using: 2.2.2 (#1, Jun 4 2006, 16:29:13)


Python 2.2.2 was originally released in 2002, but your copy was built
yesterday? did the FreeBSD source kit you got really contain a four
year old release? heck, it's not even the 2.2 release in the 2.2
series, and there's been two major releases since then.


No, there was no copy on the system. When I did the make the last time as
directed in the previous message, it downloaded it from the python site, then
compiled and installed it. The 2.2.2 release is what it downloaded.


are you sure you cannot get a *prebuilt* newer version from some FreeBSD
repository?
I did compile a new copy originally, and it worked fine in the directory that I
compiled it in, but when moved to the /usr/local/bin directory where it should
have installed, it complains that it cannot find it's library. It may just be a
matter of what directory I should put the sources into and compile from, but I
can find nowhere that this information is provided, everything I see indicates I
can compile it in any directory.


or if that's not possible, use the *standard* python.org source kit?
after all, it's known to build and install on virtually any modern Unix
or Unix-like system (and most non-Unix systems too), and you're free to
install it everywhere you want (and the default on Unix is /usr/local,
so you don't even have to read the README; just make sure you use the
real thing, instead of some botched FreeBSD-specific source kit).
That is what I did originally, downloaded the latest version from the main
python site. I compiled by the README file instructions, and I compiled by the
instructions on the python url which are different, but both gave identical
results, compiles fine, runs fine from the directory I compiled in, but will
error out when I move the executible code to and run it from the /usr/local/bin
or the /usr/local directory.

Marshall


</F>


Jun 5 '06 #8
Marshall Dudley wrote:
That is what I did originally, downloaded the latest version from the main
python site. I compiled by the README file instructions, and I compiled by the
instructions on the python url which are different, but both gave identical
results, compiles fine, runs fine from the directory I compiled in, but will
error out when I move the executible code to and run it from the /usr/local/bin
or the /usr/local directory.


deep sigh. alright, one more attempt:

DO NOT copy any binaries yourself, DO NOT use any bogus FreeBSD source
distribution, DO NOT download 2.2.2 if you need Python 2.3 or newer, DO
NOT type random commands into the shell when logged in as root. etc.

just follow these instructions:

1) go fetch a the latest source code kit from python.org. I recommend
getting Python-2.4.3.tgz:

$ wget http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tgz

2) unpack the file to a local temporary directory

$ tar xvfz Python-2.4.3.tar.gz
$ cd Python-2.4.3

3) in that directory, type the following commands:

$ ./configure
$ make
$ ./python

4) verify that the ./python command prints the following:

Python 2.4.3 [followed by some number, and today's date]
Type "help", "copyright" , "credits" or "license" ...


5) press control-D to leave the interpreter

6) login as root, and type

# make install

(or use sudo, or whatever mechanism you usually do to run a command as root)

7) log out from root. that's it. python is now installed as
"/usr/local/bin/python", *and* as "/usr/local/bin/python2.4". support
libraries and other files are installed under /usr/local/lib/python2.4
and /usr/local/include/python2.4.

</F>

Jun 5 '06 #9
Fredrik Lundh wrote:
Marshall Dudley wrote:
That is what I did originally, downloaded the latest version from the main
python site. I compiled by the README file instructions, and I compiled by the
instructions on the python url which are different, but both gave identical
results, compiles fine, runs fine from the directory I compiled in, but will
error out when I move the executible code to and run it from the /usr/local/bin
or the /usr/local directory.
deep sigh. alright, one more attempt:

DO NOT copy any binaries yourself, DO NOT use any bogus FreeBSD source
distribution, DO NOT download 2.2.2 if you need Python 2.3 or newer, DO
NOT type random commands into the shell when logged in as root. etc.

just follow these instructions:

1) go fetch a the latest source code kit from python.org. I recommend
getting Python-2.4.3.tgz:

$ wget http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tgz


OK, did that again.


2) unpack the file to a local temporary directory

$ tar xvfz Python-2.4.3.tar.gz
$ cd Python-2.4.3
did that again.

3) in that directory, type the following commands:

$ ./configure
$ make
$ ./python

OK, did that, got:

Python 2.4.3 (#2, Jun 5 2006, 11:15:03)
[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
Type "help", "copyright" , "credits" or "license" for more information.

4) verify that the ./python command prints the following:

Python 2.4.3 [followed by some number, and today's date]
Type "help", "copyright" , "credits" or "license" ... >>>

5) press control-D to leave the interpreter


Ok, did that.


6) login as root, and type

# make install
OK, did that again.

(or use sudo, or whatever mechanism you usually do to run a command as root)

7) log out from root. that's it. python is now installed as
"/usr/local/bin/python", *and* as "/usr/local/bin/python2.4". support
libraries and other files are installed under /usr/local/lib/python2.4
and /usr/local/include/python2.4.

</F>


OK, that is exactly what I had done previously, but this time there IS a copy of
python in the /usr/local/bin directory, and this time it DOES work. Don't know why
the previous times it put in the /usr/local/bin/pydoc, /usr/local/bin/idle and
/usr/local/bin/smtpd.py files, but not the python executable one.

Thanks,

Marshall
Jun 5 '06 #10

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

Similar topics

3
2049
by: Rob Brown | last post by:
I put together an installation program and it works great the first time. The problem I have is that we want the users to be able to rerun the installation without needing to uninstall the older package first. How can I set up the package to overlay the existing installation without forcing the user to run an uninstall first? Thanks, Rob Brown
0
1460
by: Michał Januszczyk | last post by:
Hello. I've got the following problem: I created a windows installer project that installs my application. The application works with some files. I want to include some example files with the installation package. These files by no means are critical for the application itself. They are included only to help application user to get aquaintanced with the app.
1
3040
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
2
6259
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For some reasons, it does not complete the reinstall. See the status report from the GUI installer at the end of this note. Errors are towards the bottom. Everything installed in /usr/opt for DB2 but the sqllib folder that is supposed to be created in...
2
2148
by: news.symantec.com | last post by:
Hi All, I'm trying to install DB2 Enterprise Edition 8.1 (partitioned installation) onto a clean Win 2k SP4 advanced server box. The problem is the partitioned installation requires a "Domain User" account for the partition (at least that is what it tells me at some point during the install) whereas a non-partitioned installation doesn't need one. Whenever I try to install DB2 logged in as a domain admin the installation tells me that...
4
3448
by: Will Honea | last post by:
Wanting to look at V9, I attempted to install Db2 Express-C on a Suse Linux box I use as a sandbox. Since I was less that thorough when removing previous installations of V8 and V7, the installation failed creating the admin server. I now have a phantom instance that I can't access or drop so the de_install fails but the installation is essentially useless. Is there a reasonable way to remove all traces of V9 so that I can start over? ...
4
4566
by: James | last post by:
I am going to install DB2 version 9 on Windows XP workstation. But I can not continue the installation after I issue the command "setup /i en". System shows me that "A major error occoured while installing DB2 on this computer". The following is a part of the installation log. Action ended 22:43:57: SetInitialPropertiesCA. Return value 1.
2
1721
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have no idea where to post this question, or even if its appropriate for me to post it here. I don't know if installing a VB.Net program has caused the problem I'm having or not. All I know is I did install a VB.Net program on my desktop computer and lately its been acting very strangely. It could also be the result of something else, but I'm not sure. The symptom I'm having is the following. When I start up my desktop computer I am...
0
1663
by: Now You Know | last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles 818-386-1022 (These types of Innovative lights will definetly add to your Christmas decor) Here are the tips to use: The most common color combinations appropriate for the Christmas season include red, green and copper lights that denote festivity; blue and green lights for more subdued arrangements; novelty combinations such as blue and red lights; and mauve, blue and...
0
2343
by: Now You Know | last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles 818-386-1022 (These types of Innovative lights will definetly add to your Christmas decor) Here are the tips to use: The most common color combinations appropriate for the Christmas season include red, green and copper lights that denote festivity; blue and green lights for more subdued arrangements; novelty combinations such as blue and red lights; and mauve, blue and...
0
8476
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7433
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5695
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4224
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.