About Fink

Discussion in 'Macintosh' started by J.Lee, Mar 8, 2004.

  1. J.Lee

    J.Lee OSNN Junior Addict

    Messages:
    29
    I want to install Gimp and I try to use Fink to install it,but it failed.
    error info:
    Can't exec "/usr/bin/nm": No such file or directory at /sw/lib/perl5/Fink/VirtPackage.pm line 234.
    Reading Package Lists...
    Building Dependency Tree...
    The following extra packages will be installed:
    aalib aalib-bin aalib-shlibs gimp-shlibs libjpeg-shlibs libmpeg-shlibs
    libpng3-shlibs libtiff-shlibs xfree86 xfree86-shlibs
    The following packages will be REMOVED:
    system-xfree86
    The following NEW packages will be installed:
    aalib aalib-bin aalib-shlibs gimp gimp-shlibs libjpeg-shlibs libmpeg-shlibs
    libpng3-shlibs libtiff-shlibs xfree86 xfree86-shlibs
    0 packages upgraded, 11 newly installed, 1 to remove and 12 not upgraded.
    Need to get 60.9MB of archives. After unpacking 0B will be used.
    Do you want to continue? [Y/n]
    Get:1 http://us.dl.sourceforge.net 10.3/current/main xfree86-shlibs 4.3.99.16-2 [2792kB]
    Get:2 http://us.dl.sourceforge.net 10.3/current/main xfree86 4.3.99.16-2 [48.8MB]
    Get:3 http://us.dl.sourceforge.net 10.3/current/main aalib-shlibs 1.4rc5-22 [87.9kB]
    Get:4 http://us.dl.sourceforge.net 10.3/current/main aalib-bin 1.4rc5-22 [64.4kB]
    Get:5 http://us.dl.sourceforge.net 10.3/current/main aalib 1.4rc5-22 [115kB]
    Get:6 http://us.dl.sourceforge.net 10.3/release/main libpng3-shlibs 1.2.5-4 [202kB]
    Get:7 http://us.dl.sourceforge.net 10.3/release/main libjpeg-shlibs 6b-6 [70.5kB]
    Get:8 http://us.dl.sourceforge.net 10.3/release/main libtiff-shlibs 3.5.7-7 [179kB]
    Get:9 http://us.dl.sourceforge.net 10.3/release/main libmpeg-shlibs 1.3.1-6 [41.4kB]
    Get:10 http://us.dl.sourceforge.net 10.3/current/main gimp-shlibs 1.2.5-1 [4787kB]
    Get:11 http://us.dl.sourceforge.net 10.3/current/main gimp 1.2.5-1 [3759kB]
    Fetched 60.9MB in 6m47s (150kB/s)
    Can't exec "/usr/bin/nm": No such file or directory at /sw/lib/perl5/Fink/VirtPackage.pm line 234.
    dpkg - warning: ignoring request to remove system-xfree86 which isn't installed.
    Can't exec "/usr/bin/nm": No such file or directory at /sw/lib/perl5/Fink/VirtPackage.pm line 234.
    Selecting previously deselected package xfree86-shlibs.
    (Reading database ... 3927 files and directories currently installed.)
    Unpacking xfree86-shlibs (from .../xfree86-shlibs_4.3.99.16-2_darwin-powerpc.deb) ...

    You have an existing X11 installation in /usr/X11R6/lib.
    This package refuses to overwrite these. Remove them, then tell Fink to
    install xfree86-shlibs again. (The package won't be recompiled.)

    Press Return to continue.
     
  2. J.Lee

    J.Lee OSNN Junior Addict

    Messages:
    29
    Then I tried again,error.....
    E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

    So I type dpkg --configure -a in terminal windows,but ...
    keiraimato:~ keirai$ dpkg --configure -a
    Can't exec "/usr/bin/nm": No such file or directory at /sw/lib/perl5/Fink/VirtPackage.pm line 234.
    dpkg: requested operation requires superuser privilege
    keiraimato:~ keirai$

    Please help me!
     
  3. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Only ever tried Fink once and couldn't really get my head around it, so it was promptly removed.

    However, relating to the dpkg error, are you using "su" to login as root before running the command?
     
  4. J.Lee

    J.Lee OSNN Junior Addict

    Messages:
    29
    SU? My login account keirai was the adimn.Is it the root user?
     
  5. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Nope, it's a normal user. You need to enable your root account.

    Hop into your Applications Folder
    Then the Utilities Folder
    Open up "NetInfo Manager"
    Click Security->Authenticate
    Enter your user password when prompted.
    Now click Security->Enable root user.
    You will then be prompted for a password, make it something secure.

    Now hop into a terminal and type "su", type the root password, and voilla, you're now running things as root.

    Should look like so..
    Code:
    [213:~] davidker% su
    Password:
    213:/Users/davidkerry root# 
    Once you've done what you've got to do, I'd recommend going back to NetInfo Manager and disabling the root account, as it doesn't really need to be activated when you're not using it.
     
  6. J.Lee

    J.Lee OSNN Junior Addict

    Messages:
    29
    Thanks!I had tried what u had tole me to do .But it still don't works:
    keiraimato:~ keirai$ su
    Password:
    keiraimato:/Users/keirai root# dpkg --configure -a
    Can't exec "/usr/bin/nm": No such file or directory at /sw/lib/perl5/Fink/VirtPackage.pm line 234.
    keiraimato:/Users/keirai root#

    Any ideas?
     
  7. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    It appears to be looking for /usr/bin/nm. Had a quick look round and it seems that this error is not important and can be ignored.. apparently anyway. Like I say, I don't use fink so I can't really be much help with this one. I'd recommend giving google a go to see if there's anyone else with similar problems.
     
  8. J.Lee

    J.Lee OSNN Junior Addict

    Messages:
    29
    Ok, I will have a try!Thanks!
     
  9. J.Lee

    J.Lee OSNN Junior Addict

    Messages:
    29
    SpeedY_B,it is so strange!I can use fink to install wget.I don't know what happened when I tryied to install Gimp.May be I need nm?What is "nm"?
     
  10. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Apparently it's something to do with developer tools (should be on your OS install CD/DVD) and isn't important.