Go Back   Hardware Forums > Software Support Forums > Linux and Other OSes

Reply
 
LinkBack Thread Tools
Old 03-06-2008, 09:54 PM   #1 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,683
Times Helpful: 304
My Mood: Paranoid
Status: Offline

My Computer

Default help debugging script

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/*
basically the 2 typo i found were \ instead of / the error output is here
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

  Reply With Quote
Whats this? G15 Gaming Keyboard
G15 Gaming Keyboard
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
Tekheads.co.uk £51.99 £4.95 £56.94 In Stock Rated: 3 out of 5 - Number of votes: 310
Micro Direct £49.26 £3.51 £52.77 In Stock Rated: 0 out of 5 - Number of votes: 37
MoreComputers.com £51.03 £5.81 £56.84 In Stock Rated: 4 out of 5 - Number of votes: 173
Old 04-06-2008, 12:03 AM   #2 (permalink) Top
The King

 
Addis's Avatar
 
Join Date: Jan 2004
Age: 18 Male
Posts: 5,234
Times Helpful: 400
My Mood: Mellow
Status: Offline

My Computer

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
Send a message via MSN to Addis   Reply With Quote
The Following User Says Thank You to Addis For This Useful Post: Show me >>
Old 04-06-2008, 07:43 AM   #3 (permalink) Top
Big Geek
 
thomas234's Avatar
 
Join Date: Feb 2006
Age: 16 Male
Posts: 725
Times Helpful: 32
My Mood: Bored
Status: Offline

My Computer

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.
  Reply With Quote
The Following User Says Thank You to thomas234 For This Useful Post: Show me >>
Old 04-06-2008, 12:07 PM   #4 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,683
Times Helpful: 304
My Mood: Paranoid
Status: Offline

My Computer

Quote:
Originally Posted by Addis
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.
sorry, yes it's a makefile, basically i'm trying to install noip-duc-linux, but i found 2 errors in the script, the whole point is i'm trying to get DDNS working on my new router, i don't really understand DDNS and then i have to start debugging a script
Quote:
Originally Posted by thomas
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.
, that explains a lot. & yes i agree
Quote:
Originally Posted by thomas
Not really sure what I'm talking about
bull
Quote:
Originally Posted by thomas
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
i agree, but, it's moving not copying
Off Topic:

simply misreading it
Quote:
Originally Posted by thomas
And because of that it can't make! You probably knew all that already
Quote:
Originally Posted by thomes
but I wasn't really sure what you're asking...
help with debugging the makefile

BTW: thank you
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT +1. The time now is 10:45 AM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved