|
|
#1 (permalink) Top |
|
Paranoid Geeky Geek
![]() Join Date: Mar 2006
Age: 34 Male
Posts: 5,683
Times Helpful: 304
My Mood: Paranoid
Status: Offline
|
i've already found 2 typos
Code:
TGT=noip2
CC=gcc
PREFIX=/usr/local
CONFDIR=${PREFIX}/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$
__________________
|
|
|
|
|
#2 (permalink) Top |
|
The King
![]() ![]() Join Date: Jan 2004
Age: 18 Male
Posts: 5,234
Times Helpful: 400
My Mood: Mellow
Status: Offline
|
You've not given enough information on what files you're editing or what you're even doing, please be more thorough in future.
Now it seems you're editing a Makefile, $PREFIX is a variable.
__________________
Never trust a program you don't have the source code for. ![]() My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers |
|
|
|
|
#3 (permalink) Top |
|
Big Geek
![]() Join Date: Feb 2006
Age: 16 Male
Posts: 725
Times Helpful: 32
My Mood: Bored
Status: Offline
|
PREFIX=/usr/local
CONFDIR=${PREFIX}/etc PREFIX looks like a string variable, so confdir could also look like this: CONFDIR=/usr/local/etc and you would get the same result I believe. Not really sure what I'm talking about... but it looks like there is no response from dynupdate.no-ip.com, which timed out the connection, which then didn't create a config file. Then when it tried to copy the non-existant config file you got: mv: cannot stat `/tmp/no-ip2.conf': No such file or directory And because of that it can't make! You probably knew all that already, but I wasn't really sure what you're asking... Last edited by thomas234; 04-06-2008 at 07:48 AM. |
|
|
|
|
#4 (permalink) Top | ||||||
|
Paranoid Geeky Geek
![]() Join Date: Mar 2006
Age: 34 Male
Posts: 5,683
Times Helpful: 304
My Mood: Paranoid
Status: Offline
|
Quote:
Quote:
, that explains a lot. & yes i agreeQuote:
Quote:
Off Topic: simply misreading it Quote:
![]() Quote:
BTW: thank you
__________________
|
||||||
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help debugging | crazypete | Windows OS's | 0 | 30-03-2008 04:51 PM |
| Little script I've been working on. | Waffle | Web Development | 13 | 28-02-2006 09:57 AM |
| Need a help with e-store script | Sara Black | General Software | 3 | 12-12-2003 10:36 PM |