LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-06-2016, 01:06 PM   #1
CL45H
LQ Newbie
 
Registered: Mar 2016
Posts: 24

Rep: Reputation: Disabled
Smile Problem to install ArpON


well i want install ArpON in slack, but throw me the next error

CMake Error at cmake/modules/FindLibnet1.cmake:72 (message):
Could not find Libnet1! Please see in the ArpON 'README' file.
Call Stack (most recent call first):
CMakeLists.txt:103 (find_package)


How i can install Libnet1 in slackware? or someone that can help me to install ArpON 3.0?
 
Old 06-06-2016, 01:16 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
could it be your application needs libnet from SBo?

EDIT: I answer the question myself: looking at its README yes, and it needs also libdnet from there.

Last edited by ponce; 06-06-2016 at 01:19 PM.
 
Old 06-06-2016, 01:46 PM   #3
CL45H
LQ Newbie
 
Registered: Mar 2016
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
could it be your application needs libnet from SBo?

EDIT: I answer the question myself: looking at its README yes, and it needs also libdnet from there.

yes , sorry, i install libnet and libdnet , sorry im sleeped, equal throw me a lot of errors more.

3# make
[ 5%] Building C object src/CMakeFiles/arpon.dir/arpca.c.o
/home/cl45h/arpon/build/ArpON-3.0-ng/src/arpca.c:47:21: fatal error: dumbnet.h: No such file or directory
compilation terminated.
src/CMakeFiles/arpon.dir/build.make:62: recipe for target 'src/CMakeFiles/arpon.dir/arpca.c.o' failed
make[2]: *** [src/CMakeFiles/arpon.dir/arpca.c.o] Error 1
CMakeFiles/Makefile2:149: recipe for target 'src/CMakeFiles/arpon.dir/all' failed
make[1]: *** [src/CMakeFiles/arpon.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 
Old 06-06-2016, 02:17 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
I just built ArpON-3.0-ng.tar.gz with no issue, having libnet and libdnet built and installed from the SlackBuilds on SBo.
check that you built and installed both the libraries above from SBo.

I just extracted the tarball and then from the ArpON-3.0-ng folder I ran these commands
Code:
$ mkdir build
$ cd build
$ cmake -DCMAKE_C_FLAGS:STRING="-O2 -march=i486 -mtune=i686" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Building ArpON for Operating System: GNU/Linux
-- Build type: Release
-- Looking for net/ethernet.h
-- Looking for net/ethernet.h - found
-- Looking for net/if.h
-- Looking for net/if.h - found
-- Looking for net/if_arp.h
-- Looking for net/if_arp.h - found
-- Looking for netinet/ether.h
-- Looking for netinet/ether.h - found
-- Looking for netinet/if_ether.h
-- Looking for netinet/if_ether.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for assert.h
-- Looking for assert.h - found
-- Found library: Pthreads
-- Found library: Librt
-- Found library: Libpcap
-- Found library: Libnet1
-- Found library: Libdnet
-- Configuring done
-- Generating done
-- Build files have been written to: /home/myuser/ArpON-3.0-ng/build
$ make
Scanning dependencies of target arpon
[  5%] Building C object src/CMakeFiles/arpon.dir/arpca.c.o
[ 10%] Building C object src/CMakeFiles/arpon.dir/darpi.c.o
[ 15%] Building C object src/CMakeFiles/arpon.dir/darpica.c.o
[ 20%] Building C object src/CMakeFiles/arpon.dir/dmn.c.o
[ 25%] Building C object src/CMakeFiles/arpon.dir/env.c.o
[ 30%] Building C object src/CMakeFiles/arpon.dir/exit.c.o
[ 35%] Building C object src/CMakeFiles/arpon.dir/harpi.c.o
[ 40%] Building C object src/CMakeFiles/arpon.dir/intf.c.o
[ 45%] Building C object src/CMakeFiles/arpon.dir/ispn.c.o
[ 50%] Building C object src/CMakeFiles/arpon.dir/main.c.o
[ 55%] Building C object src/CMakeFiles/arpon.dir/msg.c.o
[ 60%] Building C object src/CMakeFiles/arpon.dir/opt.c.o
[ 65%] Building C object src/CMakeFiles/arpon.dir/proc.c.o
[ 70%] Building C object src/CMakeFiles/arpon.dir/rt.c.o
[ 75%] Building C object src/CMakeFiles/arpon.dir/sarpi.c.o
[ 80%] Building C object src/CMakeFiles/arpon.dir/sarpica.c.o
[ 85%] Building C object src/CMakeFiles/arpon.dir/sig.c.o
[ 90%] Building C object src/CMakeFiles/arpon.dir/std.c.o
[ 95%] Building C object src/CMakeFiles/arpon.dir/thd.c.o
[100%] Linking C executable arpon
[100%] Built target arpon

Last edited by ponce; 06-06-2016 at 02:23 PM.
 
Old 06-06-2016, 02:19 PM   #5
CL45H
LQ Newbie
 
Registered: Mar 2016
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
I just built ArpON-3.0-ng.tar.gz with no issue, having libnet and libdnet built and installed from the SlackBuilds on SBo.
check that you built and installed both the libraries above from SBo.

how you installed the arpon?
Download the tar
untar
cmake ..
make ???
 
Old 06-06-2016, 02:25 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
look above
 
Old 06-06-2016, 02:29 PM   #7
CL45H
LQ Newbie
 
Registered: Mar 2016
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
I just built ArpON-3.0-ng.tar.gz with no issue, having libnet and libdnet built and installed from the SlackBuilds on SBo.
check that you built and installed both the libraries above from SBo.

I just extracted the tarball and then from the ArpON-3.0-ng folder I ran these commands
Code:
$ mkdir build
$ cd build
$ cmake -DCMAKE_C_FLAGS:STRING="-O2 -march=i486 -mtune=i686" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Building ArpON for Operating System: GNU/Linux
-- Build type: Release
-- Looking for net/ethernet.h
-- Looking for net/ethernet.h - found
-- Looking for net/if.h
-- Looking for net/if.h - found
-- Looking for net/if_arp.h
-- Looking for net/if_arp.h - found
-- Looking for netinet/ether.h
-- Looking for netinet/ether.h - found
-- Looking for netinet/if_ether.h
-- Looking for netinet/if_ether.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for assert.h
-- Looking for assert.h - found
-- Found library: Pthreads
-- Found library: Librt
-- Found library: Libpcap
-- Found library: Libnet1
-- Found library: Libdnet
-- Configuring done
-- Generating done
-- Build files have been written to: /home/myuser/ArpON-3.0-ng/build
$ make
Scanning dependencies of target arpon
[  5%] Building C object src/CMakeFiles/arpon.dir/arpca.c.o
[ 10%] Building C object src/CMakeFiles/arpon.dir/darpi.c.o
[ 15%] Building C object src/CMakeFiles/arpon.dir/darpica.c.o
[ 20%] Building C object src/CMakeFiles/arpon.dir/dmn.c.o
[ 25%] Building C object src/CMakeFiles/arpon.dir/env.c.o
[ 30%] Building C object src/CMakeFiles/arpon.dir/exit.c.o
[ 35%] Building C object src/CMakeFiles/arpon.dir/harpi.c.o
[ 40%] Building C object src/CMakeFiles/arpon.dir/intf.c.o
[ 45%] Building C object src/CMakeFiles/arpon.dir/ispn.c.o
[ 50%] Building C object src/CMakeFiles/arpon.dir/main.c.o
[ 55%] Building C object src/CMakeFiles/arpon.dir/msg.c.o
[ 60%] Building C object src/CMakeFiles/arpon.dir/opt.c.o
[ 65%] Building C object src/CMakeFiles/arpon.dir/proc.c.o
[ 70%] Building C object src/CMakeFiles/arpon.dir/rt.c.o
[ 75%] Building C object src/CMakeFiles/arpon.dir/sarpi.c.o
[ 80%] Building C object src/CMakeFiles/arpon.dir/sarpica.c.o
[ 85%] Building C object src/CMakeFiles/arpon.dir/sig.c.o
[ 90%] Building C object src/CMakeFiles/arpon.dir/std.c.o
[ 95%] Building C object src/CMakeFiles/arpon.dir/thd.c.o
[100%] Linking C executable arpon
[100%] Built target arpon
Thanks, i recently installed, now how i can make for call arpon with the command arpon in the console?
[cl45h-~]$> arpon
bash: arpon: command not found
 
Old 06-06-2016, 02:36 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
if you followed the instruction I pasted above, after a "make install", arpon gets installed as /usr/sbin/arpon: it's a command to execute as root.

for support *running* arpon please refer to its site.

P.S. I suggest you to keep the sources at hand to be able to run eventually a "make uninstall".

Last edited by ponce; 06-06-2016 at 02:40 PM.
 
Old 06-08-2016, 12:55 PM   #9
CL45H
LQ Newbie
 
Registered: Mar 2016
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
if you followed the instruction I pasted above, after a "make install", arpon gets installed as /usr/sbin/arpon: it's a command to execute as root.

for support *running* arpon please refer to its site.

P.S. I suggest you to keep the sources at hand to be able to run eventually a "make uninstall".
i reinstalled as root and the same

tar -xzvf /home/cl45h/Downloads/ArpON-3.0-ng.tar.gz
cd ArpON-3.0-ng/
mkdir build
cd build/
cmake -DCMAKE_C_FLAGS:STRING="-O2 -march=i486 -mtune=i686" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make

bash-4.3# arpon
bash: arpon: command not found
so how i can continue?
 
Old 06-08-2016, 01:11 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You would need to install the package after you compile it by running make install as root.

Keep in mind, this will put files in your system that are not tracked by Slackware's package manager which can make it difficult to remove. You may want to keep your source available so you can uninstall the program in the future if needed. To do that, you'd run make uninstall from within the build directory (assuming the source supports it, not all do).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help :(install sudo apt-get install synaptic problem help me dear :( help me help me zeeshanayub Linux - Newbie 3 10-21-2014 07:02 PM
Wubi Ubuntu install from download problem - Install files not found katmandieux Ubuntu 3 04-18-2011 11:37 AM
Slack 11 install problem (cd install asks for /dev/fd0) cygnus-x1 Slackware 1 10-16-2006 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration