Base guide is here
http://users.accesscomm.ca/docsis_server/howto_1.html
I installed docsis first so this package might have dependencies already installed from docsis.
wget http://users.accesscomm.ca/docsis_server/docsis-server-current.tar.bz2
bunzip
aptitude install m4
./configure
it will look for m4
see if m4 is installed `which m4`
if not, aptitude install m4
if already installed, mod configure script to do the m4 check correctly:
look for this line,
if test "x$ac_is_gnu_m4" = "xGNU"; then
change it to:
if test "x$ac_is_gnu_m4" = "xm4"; then
run ./configure again
if you get this error:
checking for mysql_config... /usr/libexec/mysql_config
configure: error: You need at least mysql 4.0.0, get it at http://www.mysql.com
aptitude install mysql-client mysql-server libmysqlclient15-dev
run ./configure again
make
make install
verify
root@tds-stg-dhcp02:~/docsis_server-3.5# ls /usr/local/sbin/
Count_IPs Delete_Old_Leases FindIP ListMessages
DB_Config_Encoder docsis_server FindMAC Stress_Config_Generator
gcc -Wl,-Map=contiki.map,-export-dynamic testv6.co obj_linux-native/socketdev_listener.o \ contiki-linux-native.a -o testv6.linux-native /usr/local/bin/ld: unrecognized option '--hash-style=both' /usr/local/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status If you look closely, the error is something related to the local gcc not using the host's linker (ld). $ which gcc /usr/bin/gcc $ which ld /usr/local/bin/ld For some reason, I messed my compiler path. To synchronized gcc to use the host's dynamic linker (i.e. /usr/bin/ld ), set the environment variable COMPILER_PATH to /usr/bin . $ export COMPILER_PATH=/usr/bin $ echo $COMPILER_PATH /usr/bin $ gcc -print-prog-name=ld /usr/bin/ld
Comments