donkey42
plank
i've already found 2 typos
basically the 2 typo i found were \ instead of / the error output is here
BTW: what does the item in red do ?, tried google & wiki but google doesn't do symbols, this is doing my head in now
Code:
TGT=noip2
CC=gcc
PREFIX=/usr/local
CONFDIR=[COLOR="Red"]${PREFIX}[/COLOR]/etc
BINDIR=${PREFIX}/bin
# these defines are for Linux
LIBS=
ARCH=linux
# for Mac OS X and BSD systems that have getifaddr(), uncomment the next line
#ARCH=bsd_with_getifaddrs
# for early BSD systems without getifaddrs(), uncomment the next line
#ARCH=bsd
# for solaris, uncomment the next two lines
# LIBS=-lsocket -lnsl
# ARCH=sun
${TGT}: Makefile ${TGT}.c
${CC} -Wall -g -O2 -D${ARCH} -DPREFIX=/"${PREFIX}/" ${TGT}.c -o ${TGT} ${LIBS}
install: ${TGT}
if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi
if [ ! -d ${CONFDIR} ]; then mkdir -p ${CONFDIR};fi
cp ${TGT} ${BINDIR}/${TGT}
${BINDIR}/${TGT} -C -c /tmp/no-ip2.conf
mv /tmp/no-ip2.conf ${CONFDIR}/no-ip2.conf
package: ${TGT}
rm -f *.bak
mv ${TGT} binaries/${TGT}-`uname -s`-32bit
rcp gemini:/local/src/noip-2.0/${TGT} binaries/${TGT}-`uname -s`-64bit
cd ..; tar zcvf /tmp/noip-2.1.tgz noip-2.0/*
clean:
rm -f *o
rm -f ${TGT}
rm -f binaries/*
Code:
dave@dave-desktop:~/Desktop/noip-duc-linux/noip-2.1.7$ make
gcc -Wall -g -O2 -Dlinux -DPREFIX=/"/usr/local/" noip2.c -o noip2
dave@dave-desktop:~/Desktop/noip-duc-linux/noip-2.1.7$ sudo make install
[sudo] password for dave:
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin;fi
if [ ! -d /usr/local/etc ]; then mkdir -p /usr/local/etc;fi
cp noip2 /usr/local/bin/noip2
/usr/local/bin/noip2 -C -c /tmp/no-ip2.conf
Auto configuration for Linux client of no-ip.com.
Connect to dynupdate.no-ip.com timed out
Network must be operational to create configfile. Ending!
mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf
mv: cannot stat `/tmp/no-ip2.conf': No such file or directory
make: *** [install] Error 1
dave@dave-desktop:~/Desktop/noip-duc-linux/noip-2.1.7$
BTW: what does the item in red do ?, tried google & wiki but google doesn't do symbols, this is doing my head in now