Installation - make test - pwd failure

A

Adam Smith

Hello,

Installing Python 2.4.2 on UNIX platform
Running FreeBSD O/S 4.9-STABLE FreeBSD 4.9-STABLE #0:

Using distro from python's official site
untar
../configure
make
make install

Initial installation

--->
# python
/usr/libexec/ld-elf.so.1: Shared object "libpython2.4.so.1" not found
# csh
<---

Re-installation
make clean
[no config.cache generated]
../configure --enable-share
make
make test


--->
make test ==>
.....
...............
test test_pwd failed -- Traceback (most recent call last):
File
"/usr/home/adam/Temp_holding/staging-area/Python-2.4.2/Lib/test/test_pwd.py",
line 41, in test_values
self.assert_(pwd.getpwnam(e.pw_name) in entriesbyname[e.pw_name])
KeyError: 'getpwnam(): name not found: the_domain.com'
...............
...............
255 tests OK.
1 test failed:
test_pwd
34 tests skipped:
test_aepack test_al test_applesingle test_bsddb3 test_cd test_cl
test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
test_codecmaps_kr test_codecmaps_tw test_curses test_gdbm test_gl
test_imgfile test_linuxaudiodev test_macfs test_macostools
test_nis test_normalization test_ossaudiodev test_pep277
test_plistlib test_scriptpackages test_socket_ssl
test_socketserver test_sunaudiodev test_tcl test_timeout
test_unicode_file test_urllib2net test_urllibnet test_winreg
test_winsound
Those skips are all expected on freebsd4.
*** Error code 1
<---

How can I correct this pwd error?
=================================


The pertinent output from the /etc/passwd file is ==>
--->
the_domain.com:*:1045:1000:Imported domain
the_domain.com:/home/the_domain.com:/usr/local/bin/csh
<---
 
R

rainbow.cougar

I tested this on FreeBSD 4.9, 5.3, and 6.0 using:
Python 2.4.2 (#1, Dec 5 2005, 23:05:02)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
(from my 5.3 system)

and it worked correctly on all of them.

Try
make install
and retrying...

I noticed the /usr/libexec/ld-elf.so.1: Shared object
"libpython2.4.so.1" not found when running from the build dir, and got
rid of it by using:
setenv LD_LIBRARY_PATH /home/curtis/wrk/python2.4.2
# in csh
where
/home/curtis/wrk/python2.4.2
was my build directory.

I don't recall the pwd error when I tested.

I used as my test:
Python 2.4.2 (#1, Dec 5 2005, 23:05:02)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
Type "help", "copyright", "credits" or "license" for more information.('curtis', '*', 1001, 1001, 'Curtis W. Rendon', '/home/curtis',
'/bin/csh')


Curtis
 
A

Adam Smith

Thanks Curtis

It was a problem in the passwd file itself, the entry was made by an
automated script and must have contained a problem. Removing the entry
solved the problem.

Thanks again

I tested this on FreeBSD 4.9, 5.3, and 6.0 using:
Python 2.4.2 (#1, Dec 5 2005, 23:05:02)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
(from my 5.3 system)

and it worked correctly on all of them.

Try
make install
and retrying...

I noticed the /usr/libexec/ld-elf.so.1: Shared object
"libpython2.4.so.1" not found when running from the build dir, and got
rid of it by using:
setenv LD_LIBRARY_PATH /home/curtis/wrk/python2.4.2
# in csh
where
/home/curtis/wrk/python2.4.2
was my build directory.

I don't recall the pwd error when I tested.

I used as my test:

Python 2.4.2 (#1, Dec 5 2005, 23:05:02)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
Type "help", "copyright", "credits" or "license" for more information.

('curtis', '*', 1001, 1001, 'Curtis W. Rendon', '/home/curtis',
'/bin/csh')


Curtis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top