<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Fredrik Lundh wrote:
<blockquote TYPE=CITE>Marshall Dudley wrote:
<p>> That is what I did originally, downloaded the latest version from
the main
<br>> python site.  I compiled by the README file instructions, and
I compiled by the
<br>> instructions on the python url which are different, but both gave
identical
<br>> results, compiles fine, runs fine from the directory I compiled in,
but will
<br>> error out when I move the executible code to and run it from the
/usr/local/bin
<br>> or the /usr/local directory.
<p>deep sigh.  alright, one more attempt:
<p>DO NOT copy any binaries yourself, DO NOT use any bogus FreeBSD source
<br>distribution, DO NOT download 2.2.2 if you need Python 2.3 or newer,
DO
<br>NOT type random commands into the shell when logged in as root. 
etc.
<p>just follow these instructions:
<p>1) go fetch a the latest source code kit from python.org.  I recommend
<br>getting Python-2.4.3.tgz:
<p>    $ wget <a href="http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tgz">http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tgz</a></blockquote>

<p><br>OK, did that again.
<blockquote TYPE=CITE><a href="http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tgz"></a> 
<p>2) unpack the file to a local temporary directory
<p>    $ tar xvfz Python-2.4.3.tar.gz
<br>    $ cd Python-2.4.3</blockquote>

<p><br>did that again.
<blockquote TYPE=CITE> 
<br>3) in that directory, type the following commands:
<p>    $ ./configure
<br>    $ make
<br>    $ ./python
<br> </blockquote>
OK, did that, got:
<p>Python 2.4.3 (#2, Jun  5 2006, 11:15:03)
<br>[GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
<br>Type "help", "copyright", "credits" or "license" for more information.
<br>>>>
<blockquote TYPE=CITE> 
<br>4) verify that the ./python command prints the following:
<p>    Python 2.4.3 [followed by some number, and today's
date]
<br>    Type "help", "copyright", "credits" or "license"
...
<br>    >>>
<p>5) press control-D to leave the interpreter</blockquote>
Ok, did that.
<blockquote TYPE=CITE> 
<p>6) login as root, and type
<p>    # make install</blockquote>
OK, did that again.
<blockquote TYPE=CITE> 
<br>(or use sudo, or whatever mechanism you usually do to run a command
as root)
<p>7) log out from root.  that's it.  python is now installed
as
<br>"/usr/local/bin/python", *and* as "/usr/local/bin/python2.4". 
support
<br>libraries and other files are installed under /usr/local/lib/python2.4
<br>and /usr/local/include/python2.4.
<p></F></blockquote>
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
<br>/usr/local/bin/smtpd.py files, but not the python executable one.
<p>Thanks,
<p>Marshall
<br> </html>