Retourner au contenu associé (entrée de forum : Installation de NO-IP-DUC 2.1.1 sur mandrake 10.0)
Posté par gouache le 29 septembre 2004 à 15:50. En réponse au message Installation de NO-IP-DUC 2.1.1 sur mandrake 10.0. Évalué à 0.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: Installation de NO-IP-DUC 2.1.1 sur mandrake 10.0
Posté par gouache . En réponse au message Installation de NO-IP-DUC 2.1.1 sur mandrake 10.0. Évalué à 0.
bash: cc: command not found
[root@localhost noip-2.1.1]# gcc
bash: gcc: command not found
makefile :
TGT=noip2
CC=gcc
PREFIX=/usr/local
CONFDIR=${PREFIX}/etc
BINDIR=${PREFIX}/bin
# these defines are for Linux
LIBS=
ARCH=linux
# for 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 -Y -c /tmp/no-ip2.conf
mv /tmp/no-ip2.conf ${CONFDIR}/no-ip2.conf
package: ${TGT}
mv ${TGT} binaries/${TGT}-`uname -s`
cd ..; tar zcvf /tmp/noip-2.0.tgz noip-2.0/*
clean:
rm -f *o
rm -f ${TGT}