Results 1 to 4 of 4

Thread: Need help installing nmap 6 on OpenSUSE

  1. #1

    Default Need help installing nmap 6 on OpenSUSE

    Okay, I tried following the instructions here:
    Linux/Unix Compilation and Installation from Source Code

    However, once I got to step 6, I ran into problems. I cannot log into root. I figured I could just skip that step, but every time I try to run make install, I get the following messages:
    Code:
    /usr/bin/install -c -d /usr/local/bin /usr/local/share/man/man1 /usr/local/share/nmap/usr/bin/install: cannot change permissions of `/usr/local/share/nmap': No such file or directory
    make: *** [install-nmap] Error 1
    I tried to find help, and I eventually came upon these instructions:
    http://scottlinux.com/2012/05/22/ins...-ubuntu-linux/

    This seemed to work (though I had to use zypper instead of apt-get for step 1, and for step 7 I had to provide the path /usr/sbin/checkinstall), but once I ran sudo /usr/sbin/checkinstall I ran into more problems. It would first print out the following:
    Code:
    checkinstall 1.6.2, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran           This software is released under the GNU GPL.
    
    
    
    
    The package documentation directory ./doc-pak does not exist. 
    Should I create a default set of package docs?  [y]: y
    
    
    Preparing package documentation...mkdir: cannot create directory `doc-pak': Stale NFS file handle
    OK
    ls: cannot access doc-pak: Stale NFS file handle
    
    
    *** No known documentation files were found. The new package 
    *** won't include a documentation directory.
    rm: cannot remove `doc-pak': Stale NFS file handle
    
    
    Please choose the packaging method you want to use.
    Slackware [S], RPM [R] or Debian [D]?
    I tried all three options, but regardless of what option I chose, it would then print the following:
    Code:
    Please write a description for the package.End your description with an empty line or EOF.
    >> nmap
    /usr/sbin/checkinstall: line 1200: description-pak: Stale NFS file handle
    >> nmap    
    /usr/sbin/checkinstall: line 1200: description-pak: Stale NFS file handle
    >> nmap                                                                                                                                
    /usr/sbin/checkinstall: line 1200: description-pak: Stale NFS file handle
    >> help
    /usr/sbin/checkinstall: line 1200: description-pak: Stale NFS file handle
    >> nmap
    /usr/sbin/checkinstall: line 1200: description-pak: Stale NFS file handle
    >> 
    /usr/sbin/checkinstall: line 1206: description-pak: Stale NFS file handle
    /usr/sbin/checkinstall: line 1212: description-pak: Stale NFS file handle
    /usr/sbin/checkinstall: line 1212: [: -gt: unary operator expected
    Regardless of what I typed, it wouldn't take it. So I just settled for a blank line. Then it printed the following:
    Code:
    ****************************************** RPM package creation selected ***
    **************************************
    head: cannot open `description-pak' for reading: Stale NFS file handle
    
    
    This package will be built according to these values: 
    
    
    1 -  Summary: [  ]
    2 -  Name:    [ nmap ]
    3 -  Version: [ 6.01 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ Applications/System ]
    7 -  Architecture: [ x86_64 ]
    8 -  Source location: [ nmap-6.01 ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ nmap ]
    
    
    Enter a number to change any of them or press ENTER to continue: 
    
    
    Installing with make...Installing with install...
    
    
    ========================= Installation results ===========================
    /var/tmp/tmp.XXet0HiNHz/installscript.sh: line 3: cd: /home/csapp/nmap-6.01: Not a directory
    make: stat: GNUmakefile: Permission denied
    make: stat: makefile: Permission denied
    make: stat: Makefile: Permission denied
    make: stat: install: Permission denied
    make: *** No rule to make target `install'.  Stop.
    
    
    ****  Installation failed. Aborting package creation.
    
    
    Cleaning up.../usr/sbin/checkinstall: line 317: cd: /home/csapp/nmap-6.01: Permission denied
    rm: cannot remove `checkinstall-debug*': Stale NFS file handle
    OK
    
    
    Bye.
    I wasn't sure of what to change, so I didn't change anything. However, as you can see, it didn't work. I tried using all three packaging methods, but they all ended up doing this. I did try changing some of the package values to match the instructions on the website:
    Code:
    ****************************************** RPM package creation selected ***
    **************************************
    head: cannot open `description-pak' for reading: Stale NFS file handle
    
    
    This package will be built according to these values: 
    
    
    1 -  Summary: [  ]
    2 -  Name:    [ nmap ]
    3 -  Version: [ 6.01 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ Applications/System ]
    7 -  Architecture: [ x86_64 ]
    8 -  Source location: [ nmap-6.01 ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ nmap ]
    
    
    Enter a number to change any of them or press ENTER to continue: 1
    Enter new summary: 
    >> nmap
    
    
    This package will be built according to these values: 
    
    
    1 -  Summary: [ nmap ]
    2 -  Name:    [ nmap ]
    3 -  Version: [ 6.01 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ Applications/System ]
    7 -  Architecture: [ x86_64 ]
    8 -  Source location: [ nmap-6.01 ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ nmap ]
    
    
    Enter a number to change any of them or press ENTER to continue: 6
    Enter the new software group: 
    >> checkinstall
    
    
    This package will be built according to these values: 
    
    
    1 -  Summary: [ nmap ]
    2 -  Name:    [ nmap ]
    3 -  Version: [ 6.01 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ checkinstall ]
    7 -  Architecture: [ x86_64 ]
    8 -  Source location: [ nmap-6.01 ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ nmap ]
    
    
    Enter a number to change any of them or press ENTER to continue: 
    
    
    Installing with make...Installing with install...
    
    
    ========================= Installation results ===========================
    /var/tmp/tmp.1hNUFQWhkj/installscript.sh: line 3: cd: /home/csapp/nmap-6.01: Not a directory
    make: stat: GNUmakefile: Permission denied
    make: stat: makefile: Permission denied
    make: stat: Makefile: Permission denied
    make: stat: install: Permission denied
    make: *** No rule to make target `install'.  Stop.
    
    
    ****  Installation failed. Aborting package creation.
    
    
    Cleaning up.../usr/sbin/checkinstall: line 317: cd: /home/csapp/nmap-6.01: Permission denied
    rm: cannot remove `checkinstall-debug*': Stale NFS file handle
    OK
    
    
    Bye.
    But that didn't work. Can someone help me?

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Need help installing nmap 6 on OpenSUSE

    On 2012-06-25 15:06, EonsNearby wrote:
    >
    > Okay, I tried following the instructions here:
    > 'Linux/Unix Compilation and Installation from Source Code'
    > (http://nmap.org/book/inst-source.html)


    Version 6 is available from some repos. Did you not search, or have some
    reason not to use them?

    > However, once I got to step 6, I ran into problems. I cannot log into
    > root. I figured I could just skip that step, but every time I try to
    > run make install, I get the following messages:


    You have to open a terminal, and there do "su -". Do not forget the dash.

    ....

    > I tried all three options, but regardless of what option I chose, it
    > would then print the following:


    Use a local filesytem instead of NFS. Obvious.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)



  3. #3

    Default Re: Need help installing nmap 6 on OpenSUSE

    1) I don't know what repos are

    2) su - doesn't work. I can log into root using sudo -i, but the password I use for sudo -i does not work with su -

    3) What do you mean use a local file system? Do you mean install nmap in a local directory, or do you mean to choose a different packaging method (because those three were the only ones I could choose from)?

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Need help installing nmap 6 on OpenSUSE

    On 2012-06-25 15:46, EonsNearby wrote:
    >
    > 1) I don't know what repos are'


    What yast uses to download packages from. Basic openSUSE thing.


    here


    > 2) su - doesn't work. I can log into root using sudo -i, but the
    > password I use for sudo -i does not work with su -


    Please show paste of you running those two commands. Use code tags:

    Posting in Code
    Tags - A Guide


    >
    > 3) What do you mean use a local file system? Do you mean install nmap
    > in a local directory, or do you mean to choose a different packaging
    > method (because those three were the only ones I could choose from)?


    NFS stands for network filesystem. You are using a filesystem that is not
    in your computer, but in another, via network. Use one in your own computer.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •