Installation - make test - pwd failure

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam Smith

    #1

    Installation - make test - pwd failure

    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.s o.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_(pw d.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_applesingl e 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_linuxaudio dev test_macfs test_macostools
    test_nis test_normalizat ion test_ossaudiode v test_pep277
    test_plistlib test_scriptpack ages test_socket_ssl
    test_socketserv er test_sunaudiode v test_tcl test_timeout
    test_unicode_fi le 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:Imp orted domain
    the_domain.com:/home/the_domain.com:/usr/local/bin/csh
    <---
  • rainbow.cougar@gmail.com

    #2
    Re: Installation - make test - pwd failure

    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.s o.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:[color=blue]
    > python[/color]
    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.[color=blue][color=green][color=darkred]
    >>> import pwd
    >>> pwd.getpwnam('c urtis')[/color][/color][/color]
    ('curtis', '*', 1001, 1001, 'Curtis W. Rendon', '/home/curtis',
    '/bin/csh')


    Curtis

    Comment

    • Adam Smith

      #3
      Re: Installation - make test - pwd failure

      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

      rainbow.cougar@ gmail.com wrote:[color=blue]
      > 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.s o.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:
      >[color=green]
      >>python[/color]
      >
      > 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.
      >[color=green][color=darkred]
      >>>>import pwd
      >>>>pwd.getpwna m('curtis')[/color][/color]
      >
      > ('curtis', '*', 1001, 1001, 'Curtis W. Rendon', '/home/curtis',
      > '/bin/csh')
      >
      >
      > Curtis
      >[/color]

      Comment

      Working...