Bonjour,
Voila j'ai voulu installer la commande iftop sur mon firewall sous slackware. J'ai bien pris le package décompressé etc ... mais quand je veux lancer la commande il me dit:
iftop: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by iftop)
iftop: /lib/libc.so.6: version `GLIBC_2.3.4' not found (required by iftop)
Je pense qu'il me manque un package mais je ne sais pas lequel, quelqu'un pourrait il m'aider et me dire ou le trouver merci d'avance
Forum Linux.slackware Manque de packages
31
juil.
2006
# Ton paquet n'est pas adapté à ta version de slackware
Posté par slack . Évalué à 1.
Pour obtenir un paquet convenable, charge dans un répertoire de travail les sources de iftop que tu trouveras à l'adresse :
http://www.ex-parrot.com/~pdw/iftop/download/?M=D
Ensuite, tu crées un fichier slack-desk avec par exemple le contenu suivant (la ligne #-- fin de fichier n'est pas à inclure) :
iftop: iftop : suivi des connections réseaux
iftop:
iftop: Cet outils affiche les connections réseaux et assure un suivi de
iftop: consommation de bande passante
iftop:
iftop: Utilise les bibliothèques :
iftop: libm libncurses libpthreads libgpm
iftop:
iftop:
iftop:
iftop:i
# --fin de fichier
Ensuite, tu crées un fichier iftop.SlackBuild exécutable avec le contenu suivant :
#!/bin/sh
CWD=`pwd`
PKG=/tmp/package-iftop
VERSION=0.17
ARCH=${ARCH:-i486}
BUILD=001
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
rm -rf $PKG
mkdir -p $PKG
cd /tmp
rm -rf iftop-$VERSION
tar xzvf $CWD/iftop-$VERSION.tar.gz
cd iftop-$VERSION
chown -R root.root .
#find . -perm 777 -exec chmod 755 {} \;
#find . -perm 664 -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--build $ARCH-slackware-linux | less
make
make check
make install DESTDIR=$PKG
cd $PKG
chown -R root.bin $PKG/usr/bin $PKG/bin
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
makepkg -l y -c n ../iftop-$VERSION-$ARCH-$BUILD.tgz
# --fin de fichier
Enfin, exécute sous la compte root iftop.SlackBuild. Tu obtiendras un beau paquet tout neuf.
[^] # Re: Ton paquet n'est pas adapté à ta version de slackware
Posté par marsu1983 . Évalué à 1.
Mais je ne comprend pas ce que je dois faire apres ?
Merci
[^] # Re: Ton paquet n'est pas adapté à ta version de slackware
Posté par marsu1983 . Évalué à 1.
usr/
usr/man/
usr/man/man8/
usr/man/man8/iftop.8.gz
usr/sbin/
usr/sbin/iftop
install/
install/slack-desc
Le soucis c'est que je ne sais pas quoi faire avec
Je suis débutant la dedans
[^] # Re: Ton paquet n'est pas adapté à ta version de slackware
Posté par marsu1983 . Évalué à 1.
Suivre le flux des commentaires
Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.