Link to home
Start Free TrialLog in
Avatar of FireBall
FireBall

asked on

Freebsd - Ethtool

Hello ,

We need to install eth-tool on freebsd. As far as i searched on the net it is not possible but i am very suprised to see this on free bsd man's page

https://www.freebsd.org/cgi/man.cgi?query=ethtool&apropos=0&sektion=0&manpath=Red+Hat+Linux%2Fi386+9&format=html


I try to install from the given link below but i am facing with an issue .
Does any body know how to over come this issue ?





root@fw:~/Driver/rng-tools-5 # ./config
./config: Command not found.
root@fw:~/Driver/rng-tools-5 # ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gcrypt.h usability... no
checking gcrypt.h presence... no
checking for gcrypt.h... no
configure: libgcrypt support disabled
checking dependency style of gcc... gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating contrib/Makefile
config.status: creating rngd.8
config.status: creating rngtest.1
config.status: creating rng-tools-config.h
config.status: rng-tools-config.h is unchanged
config.status: executing depfiles commands
root@fw:~/Driver/rng-tools-5 # make
make  all-recursive
Making all in contrib
gcc -DHAVE_CONFIG_H -I.      -g -O2 -MT fips.o -MD -MP -MF .deps/fips.Tpo -c -o fips.o fips.c
mv -f .deps/fips.Tpo .deps/fips.Po
rm -f librngd.a
ar cru librngd.a fips.o 
ranlib librngd.a
gcc -DHAVE_CONFIG_H -I.      -g -O2 -MT stats.o -MD -MP -MF .deps/stats.Tpo -c -o stats.o stats.c
mv -f .deps/stats.Tpo .deps/stats.Po
gcc -DHAVE_CONFIG_H -I.      -g -O2 -MT rngtest.o -MD -MP -MF .deps/rngtest.Tpo -c -o rngtest.o rngtest.c
rngtest.c:39:18: fatal error: argp.h: No such file or directory
compilation terminated.
*** Error code 1

Stop.
make[2]: stopped in /root/Driver/rng-tools-5
*** Error code 1

Stop.
make[1]: stopped in /root/Driver/rng-tools-5
*** Error code 1

Stop.
make: stopped in /root/Driver/rng-tools-5

Open in new window

Avatar of skullnobrains
skullnobrains

don't run config manually on freebsd.

run "make install clean" in the port's directory ( i guess something like /usr/ports/net/ethtool ) or use "pkg add", portmaster, or any of the package management tools available.

run a "make clean" first if you suspect you have a dirty make dir
didi it work ?
going through ports should install whatever dependencies are required. argp.h probably is in some compat linux package or whatever package contains glibc
feel free to delete the question or close it as you see fit
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.