S'abonner :  Newsletters    Magazines
Avis sur les produits Avis sur les logiciels Avis sur les jeux Actualités A propos de 01net
647 utilisateurs connectés
page précédente  1 - 2
ou aller à la page
 page suivante

libssh2

benhamster le 12 novembre 2006 à 12h14
Bonjour
J'aimerais bien installer libssh2 mais j'ai une erreur.
Je suis sous debian 3.1 et j'ai donc installé openssl, apache2, mysql-server, php5.

Pour plus de facilitée, je vous décris comment j'ai installé libssh2:

1. j'ai télécharger le fichier : http://sourceforge.net/projects/libssh2/
2. j'ai décomprésser le fichier
3. j'ai fait cette commande : ./configure && make all install
mais j'ai un problème avec la commande make all install :
make[1]: Entering directory `/home/benoit/libssh2-0.14/src'
gcc -o channel.o channel.c -c -g -O2 /usr/include -Wall -I../include/ -fPIC
gcc: ne peut spécifier -o avec -c ou -S et de multiples compilations
make[1]: *** [channel.o] Erreur 1
make[1]: Leaving directory `/home/benoit/libssh2-0.14/src'
make: *** [all] Erreur 1

cette ligne
gcc -o channel.o channel.c -c -g -O2 /usr/include -Wall -I../include/ -fPIC

veut dire :
-o channel.o : nomme le fichier de sortie (par défaut a.out normalement)
-c : n'appelle pas le linker ld
-g : intègre les informations de déboggage (pour gdb par défaut)
-O2 : optimisation de niveau 2
-Wall : affiche tous les warnings
-I../include/ : indique où trouver les fichiers .h
-fPIC : indique que l'on souhaite avoir du code position-independant, utile pour faire du lien dynamique


j'éspère que vous pourez m'aidez!
merci d'avance
benhamster

manchote le 12 novembre 2006 à 18h05
ici http://www.coagul.org/article.php3?id_article=168 à voir mais je ne sais plus pour debian
-------
Manchot ou pingouin...?
Ne cherchez plus: passer à Linux!
benhamster le 12 novembre 2006 à 19h14
Slt
merci pour l'adresse web mais je ne crois pas qu'avec ce lien que je vais pouvoir installer libssh2.
Ou à moin que je me trompe!
Pour l'instant je n'ai pas encore trouvé un libssh2 en .deb (le tar.gz ne marchant pas toujours bien sous debian mais serait plus facile à installer sous slackware...)

Y a-t-il un moteur de recherche pour telecharger les .deb??
à part celui la : http://tuxfinder.com/packages/search.php je n'ai pas trouvé d'autre moteur en plus celui la ne m'a rien donné comme . deb

benhamster
-->Message édité par benhamster le 12/11/2006 19:19:04<--
benhamster le 12 novembre 2006 à 21h21
Merci pour ce lien, mais j'ai déjà installé ssh2 sans difficulté.
Ma demande est bien relative à une librairie complémentaire de ssh2, c'est à dire libssh2. Cette librairie sert a faire la liaison entre php et ssh2 car mon but est d'à partir de php imposer l'execution des commandes sur ssh2.
benhamster le 16 novembre 2006 à 17h08
up
benhamster le 16 novembre 2006 à 23h02
oui mais un fichier de log de quoi ? (car libssh2 n'est pas encore installé)
secwineman le 17 novembre 2006 à 17h53
Un fichier dans le dossier qui te donne le compte rendu de la compilaton et les erreurs en détail.
benhamster le 22 novembre 2006 à 21h23
slt
désolé de te répondre si tard mais j'avais beaucoup de leçons pour l'école.
je crois avoir trouvé le fichier log que tu me parle
il s'appelle config.log, je trouve ce nom déjà bizare en plus le contenu est encore plus bizare.
je vais te passer ce fichier comme sa tu vera si c'est celui là ou pas.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libssh2 configure 0.14, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = debian
uname -m = i686
uname -r = 2.4.27-2-386
uname -s = Linux
uname -v = #1 Mon May 16 16:47:51 JST 2005

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/bin/X11
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1371: checking build system type
configure:1389: result: i686-pc-linux-gnu
configure:1397: checking host system type
configure:1411: result: i686-pc-linux-gnu
configure:1487: checking for gcc
configure:1503: found /usr/bin/gcc
configure:1513: result: gcc
configure:1757: checking for C compiler version
configure:1760: gcc --version </dev/null >&5
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1763: $? = 0
configure:1765: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
configure:1768: $? = 0
configure:1770: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1773: $? = 1
configure:1796: checking for C compiler default output file name
configure:1799: gcc conftest.c >&5
configure:1802: $? = 0
configure:1848: result: a.out
configure:1853: checking whether the C compiler works
configure:1859: ./a.out
configure:1862: $? = 0
configure:1879: result: yes
configure:1886: checking whether we are cross compiling
configure:1888: result: no
configure:1891: checking for suffix of executables
configure:1893: gcc -o conftest conftest.c >&5
configure:1896: $? = 0
configure:1921: result:
configure:1927: checking for suffix of object files
configure:1948: gcc -c conftest.c >&5
configure:1951: $? = 0
configure:1973: result: o
configure:1977: checking whether we are using the GNU C compiler
configure:2001: gcc -c conftest.c >&5
configure:2007: $? = 0
configure:2010: test -z || test ! -s conftest.err
configure:2013: $? = 0
configure:2016: test -s conftest.o
configure:2019: $? = 0
configure:2032: result: yes
configure:2038: checking whether gcc accepts -g
configure:2059: gcc -c -g conftest.c >&5
configure:2065: $? = 0
configure:2068: test -z || test ! -s conftest.err
configure:2071: $? = 0
configure:2074: test -s conftest.o
configure:2077: $? = 0
configure:2088: result: yes
configure:2105: checking for gcc option to accept ANSI C
configure:2175: gcc -c -g -O2 conftest.c >&5
configure:2181: $? = 0
configure:2184: test -z || test ! -s conftest.err
configure:2187: $? = 0
configure:2190: test -s conftest.o
configure:2193: $? = 0
configure:2211: result: none needed
configure:2229: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:2235: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2366: checking for socket in -lsocket
configure:2396: gcc -o conftest -g -O2 conftest.c -lsocket >&5
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
configure:2402: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "0.14"
| #define PACKAGE_STRING "libssh2 0.14"
| #define PACKAGE_BUGREPORT "sarag@libssh2.org"
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char socket ();
| int
| main ()
| {
| socket ();
| ;
| return 0;
| }
configure:2427: result: no
configure:2436: checking for ceil in -lm
configure:2466: gcc -o conftest -g -O2 conftest.c -lm >&5
configure:2472: $? = 0
configure:2475: test -z || test ! -s conftest.err
configure:2478: $? = 0
configure:2481: test -s conftest
configure:2484: $? = 0
configure:2497: result: yes
configure:2556: checking for gcc
configure:2582: result: gcc
configure:2826: checking for C compiler version
configure:2829: gcc --version </dev/null >&5
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2832: $? = 0
configure:2834: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
configure:2837: $? = 0
configure:2839: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2842: $? = 1
configure:2845: checking whether we are using the GNU C compiler
configure:2900: result: yes
configure:2906: checking whether gcc accepts -g
configure:2956: result: yes
configure:2973: checking for gcc option to accept ANSI C
configure:3079: result: none needed
configure:3097: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:3103: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3246: checking for a BSD-compatible install
configure:3301: result: /usr/bin/install -c
configure:3312: checking whether ln -s works
configure:3316: result: yes
configure:3323: checking whether make sets $(MAKE)
configure:3343: result: yes
configure:3393: checking for ranlib
configure:3409: found /usr/bin/ranlib
configure:3420: result: ranlib
configure:3432: checking whether byte ordering is bigendian
configure:3459: gcc -c -g -O2 conftest.c >&5
configure:3465: $? = 0
configure:3468: test -z || test ! -s conftest.err
configure:3471: $? = 0
configure:3474: test -s conftest.o
configure:3477: $? = 0
configure:3501: gcc -c -g -O2 conftest.c >&5
conftest.c: In function `main':
conftest.c:16: error: `not' undeclared (first use in this function)
conftest.c:16: error: (Each undeclared identifier is reported only once
conftest.c:16: error: for each function it appears in.)
conftest.c:16: error: syntax error before "big"
configure:3507: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "0.14"
| #define PACKAGE_STRING "libssh2 0.14"
| #define PACKAGE_BUGREPORT "sarag@libssh2.org"
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <sys/param.h>
|
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
| not big endian
| #endif
|
| ;
| return 0;
| }
configure:3640: result: no
configure:3662: checking for pkg-config
configure:3680: found /usr/bin/pkg-config
configure:3693: result: /usr/bin/pkg-config
configure:3724: checking for OpenSSL
configure:3743: result: Using paths from pkg-config
configure:3817: checking for libz
configure:3841: result: Cannot find libz's <zlib.h>
configure:4012: checking how to run the C preprocessor
configure:4047: gcc -E conftest.c
configure:4053: $? = 0
configure:4085: gcc -E conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:4091: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "0.14"
| #define PACKAGE_STRING "libssh2 0.14"
| #define PACKAGE_BUGREPORT "sarag@libssh2.org"
| #define LIBSSH2_DH_GEX_NEW 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4130: result: gcc -E
configure:4154: gcc -E conftest.c
configure:4160: $? = 0
configure:4192: gcc -E conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:4198: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "0.14"
| #define PACKAGE_STRING "libssh2 0.14"
| #define PACKAGE_BUGREPORT "sarag@libssh2.org"
| #define LIBSSH2_DH_GEX_NEW 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4242: checking for egrep
configure:4252: result: grep -E
configure:4257: checking for ANSI C header files
configure:4282: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4288: $? = 0
configure:4291: test -z || test ! -s conftest.err
configure:4294: $? = 0
configure:4297: test -s conftest.o
configure:4300: $? = 0
configure:4386: gcc -o conftest -g -O2 /usr/include -lssl -lcrypto -ldl conftest.c >&5
/usr/bin/ld: /usr/include: No such file: File format not recognized
collect2: ld returned 1 exit status
configure:4389: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "0.14"
| #define PACKAGE_STRING "libssh2 0.14"
| #define PACKAGE_BUGREPORT "sarag@libssh2.org"
| #define LIBSSH2_DH_GEX_NEW 1
| /* end confdefs.h. */
| #include <ctype.h>
| #if ((' ' & 0x0FF) == 0x020)
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
| #else
| # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') || ('j' <= (c) && (c) <= 'r') || ('s' <= (c) && (c) <= 'z'))
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
| #endif
|
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
| int
| main ()
| {
| int i;
| for (i = 0; i < 256; i++)
| if (XOR (islower (i), ISLOWER (i))
| || toupper (i) != TOUPPER (i))
| exit(2);
| exit (0);
| }
configure:4409: result: no
configure:4433: checking for sys/types.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4433: checking for sys/stat.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4433: checking for stdlib.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4433: checking for string.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4433: checking for memory.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4433: checking for strings.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4433: checking for inttypes.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4433: checking for stdint.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4433: checking for unistd.h
configure:4449: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4455: $? = 0
configure:4458: test -z || test ! -s conftest.err
configure:4461: $? = 0
configure:4464: test -s conftest.o
configure:4467: $? = 0
configure:4478: result: yes
configure:4510: checking errno.h usability
configure:4522: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4528: $? = 0
configure:4531: test -z || test ! -s conftest.err
configure:4534: $? = 0
configure:4537: test -s conftest.o
configure:4540: $? = 0
configure:4550: result: yes
configure:4554: checking errno.h presence
configure:4564: gcc -E conftest.c
configure:4570: $? = 0
configure:4590: result: yes
configure:4625: checking for errno.h
configure:4632: result: yes
configure:4510: checking fcntl.h usability
configure:4522: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4528: $? = 0
configure:4531: test -z || test ! -s conftest.err
configure:4534: $? = 0
configure:4537: test -s conftest.o
configure:4540: $? = 0
configure:4550: result: yes
configure:4554: checking fcntl.h presence
configure:4564: gcc -E conftest.c
configure:4570: $? = 0
configure:4590: result: yes
configure:4625: checking for fcntl.h
configure:4632: result: yes
configure:4510: checking stdio.h usability
configure:4522: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4528: $? = 0
configure:4531: test -z || test ! -s conftest.err
configure:4534: $? = 0
configure:4537: test -s conftest.o
configure:4540: $? = 0
configure:4550: result: yes
configure:4554: checking stdio.h presence
configure:4564: gcc -E conftest.c
configure:4570: $? = 0
configure:4590: result: yes
configure:4625: checking for stdio.h
configure:4632: result: yes
configure:4501: checking for stdlib.h
configure:4506: result: yes
configure:4501: checking for unistd.h
configure:4506: result: yes
configure:4510: checking sys/uio.h usability
configure:4522: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4528: $? = 0
configure:4531: test -z || test ! -s conftest.err
configure:4534: $? = 0
configure:4537: test -s conftest.o
configure:4540: $? = 0
configure:4550: result: yes
configure:4554: checking sys/uio.h presence
configure:4564: gcc -E conftest.c
configure:4570: $? = 0
configure:4590: result: yes
configure:4625: checking for sys/uio.h
configure:4632: result: yes
configure:4510: checking sys/select.h usability
configure:4522: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4528: $? = 0
configure:4531: test -z || test ! -s conftest.err
configure:4534: $? = 0
configure:4537: test -s conftest.o
configure:4540: $? = 0
configure:4550: result: yes
configure:4554: checking sys/select.h presence
configure:4564: gcc -E conftest.c
configure:4570: $? = 0
configure:4590: result: yes
configure:4625: checking for sys/select.h
configure:4632: result: yes
configure:4651: checking for poll
configure:4708: gcc -o conftest -g -O2 /usr/include -lssl -lcrypto -ldl conftest.c >&5
/usr/bin/ld: /usr/include: No such file: File format not recognized
collect2: ld returned 1 exit status
configure:4714: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "0.14"
| #define PACKAGE_STRING "libssh2 0.14"
| #define PACKAGE_BUGREPORT "sarag@libssh2.org"
| #define LIBSSH2_DH_GEX_NEW 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_SYS_SELECT_H 1
| /* end confdefs.h. */
| /* Define poll to an innocuous variant, in case <limits.h> declares poll.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define poll innocuous_poll
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char poll (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef poll
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char poll ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined (__stub_poll) || defined (__stub___poll)
| choke me
| #else
| char (*f) () = poll;
| #endif
| #ifdef __cplusplus
| }
| #endif
|
| int
| main ()
| {
| return f != poll;
| ;
| return 0;
| }
configure:4738: result: no
configure:4651: checking for gettimeofday
configure:4708: gcc -o conftest -g -O2 /usr/include -lssl -lcrypto -ldl conftest.c >&5
/usr/bin/ld: /usr/include: No such file: File format not recognized
collect2: ld returned 1 exit status
configure:4714: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "0.14"
| #define PACKAGE_STRING "libssh2 0.14"
| #define PACKAGE_BUGREPORT "sarag@libssh2.org"
| #define LIBSSH2_DH_GEX_NEW 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_SYS_SELECT_H 1
| /* end confdefs.h. */
| /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define gettimeofday innocuous_gettimeofday
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char gettimeofday (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef gettimeofday
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char gettimeofday ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
| choke me
| #else
| char (*f) () = gettimeofday;
| #endif
| #ifdef __cplusplus
| }
| #endif
|
| int
| main ()
| {
| return f != gettimeofday;
| ;
| return 0;
| }
configure:4738: result: no
configure:4651: checking for select
configure:4708: gcc -o conftest -g -O2 /usr/include -lssl -lcrypto -ldl conftest.c >&5
/usr/bin/ld: /usr/include: No such file: File format not recognized
collect2: ld returned 1 exit status
configure:4714: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssh2"
| #define PACKAGE_TARNAME "libssh2"
| #define PACKAGE_VERSION "0.14"
| #define PACKAGE_STRING "libssh2 0.14"
| #define PACKAGE_BUGREPORT "sarag@libssh2.org"
| #define LIBSSH2_DH_GEX_NEW 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_SYS_SELECT_H 1
| /* end confdefs.h. */
| /* Define select to an innocuous variant, in case <limits.h> declares select.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define select innocuous_select
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char select (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef select
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char select ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined (__stub_select) || defined (__stub___select)
| choke me
| #else
| char (*f) () = select;
| #endif
| #ifdef __cplusplus
| }
| #endif
|
| int
| main ()
| {
| return f != select;
| ;
| return 0;
| }
configure:4738: result: no
configure:4750: checking for an ANSI C-conforming const
configure:4817: gcc -c -g -O2 /usr/include conftest.c >&5
gcc: /usr/include: linker input file unused because linking not done
configure:4823: $? = 0
configure:4826: test -z || test ! -s conftest.err
configure:4829: $? = 0
configure:4832: test -s conftest.o
configure:4835: $? = 0
configure:4846: result: yes
configure:4954: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by libssh2 config.status 0.14, which was
generated by GNU Autoconf 2.59. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on debian

config.status:705: creating Makefile
config.status:705: creating src/Makefile
config.status:771: creating include/libssh2_config.h

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_func_gettimeofday=no
ac_cv_func_poll=no
ac_cv_func_select=no
ac_cv_header_errno_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=no
ac_cv_header_stdint_h=yes
ac_cv_header_stdio_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_select_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_sys_uio_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_lib_m_ceil=yes
ac_cv_lib_socket_socket=no
ac_cv_objext=o
ac_cv_path_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS='-g -O2 /usr/include'
CPP='gcc -E'
CPPFLAGS=''
DEFS='-DHAVE_CONFIG_H'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDCC='$(CC)'
LDFLAGS=' -lssl -lcrypto -ldl '
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='sarag@libssh2.org'
PACKAGE_NAME='libssh2'
PACKAGE_STRING='libssh2 0.14'
PACKAGE_TARNAME='libssh2'
PACKAGE_VERSION='0.14'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
SHLIB_LDFLAGS='-shared -lm'
SHLIB_SUFFIX_NAME='so'
ac_ct_CC='gcc'
ac_ct_RANLIB='ranlib'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_ERRNO_H 1
#define HAVE_FCNTL_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_UIO_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define LIBSSH2_DH_GEX_NEW 1
#define PACKAGE_BUGREPORT "sarag@libssh2.org"
#define PACKAGE_NAME "libssh2"
#define PACKAGE_STRING "libssh2 0.14"
#define PACKAGE_TARNAME "libssh2"
#define PACKAGE_VERSION "0.14"

configure: exit 0

Je n'ai trouvé qu'un fichier .log
Au fait ce fichier .log se situe à la racine du répertoir d'installation.

J'éspère que ce fichier t'aidera a essayer de resoudre mon problème.

@+
benhamster

PS : Est-ce que ca se peut que se fichier ne se termine pas par .log ?
benhamster le 22 novembre 2006 à 21h24
up
secwineman le 23 novembre 2006 à 18h14
configure:3640: result: no
configure:3662: checking for pkg-config
configure:3680: found /usr/bin/pkg-config
configure:3693: result: /usr/bin/pkg-config
configure:3724: checking for OpenSSL
configure:3743: result: Using paths from pkg-config
configure:3817: checking for libz
configure:3841: result: Cannot find libz's <zlib.h>
configure:4012: checking how to run the C preprocessor
configure:4047: gcc -E conftest.c
configure:4053: $? = 0
configure:4085: gcc -E conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:4091: $? = 1
configure: failed program was:
| /* confdefs.h. */


Y a des erreurs, installe les packages demandés.
benhamster le 23 novembre 2006 à 18h51
ok merci de ta réponse je vais donc installer ou mettre le fichier zlib.h
il y a une ligne que je je comprend pas :
configure:3640: result: no

en francais :
résultat : échec ou un truc comme ça

mais quel résultat?

Puis il y a tout ce groupe de ligne

configure:4012: checking how to run the C preprocessor
configure:4047: gcc -E conftest.c
configure:4053: $? = 0
configure:4085: gcc -E conftest.c
conftest.c:10:28: ac_nonexistent.h: No such file or directory
configure:4091: $? = 1


je ne comprend rien sauf la ligne

conftest.c:10:28: ac_nonexistent.h: No such file or directory

donc si il affiche cette ligne c'est que je dois telecharger un fichier ac_nonexistent.h ??

@+
benhamster
secwineman le 25 novembre 2006 à 12h08
Installing libssh2
==================

* Untar this tarball (which, if you're reading this, you've already done)

* Run: ./configure (passing additional options as desired)

In addition the the standard set of ./configure options (e.g. --prefix)
there are five switches which you may wish to pay attention to:

* --with-openssl=[DIR]

libssh2 requires the OpenSSL library (http://www.openssl.org) for
cipher and hash method implementations.

./configure will attempt to locate OpenSSL in a number of default locations:
/usr/local/ssl /usr/local /usr /usr/local/openssl
If your installation of OpenSSL is in another location, specify it here.

* --with-zlib=[DIR]

If present, libssh2 will attempt to use the zlib (http://www.zlib.org)
for payload compression, however zlib is not required.

./configure will attempt to location a zlib installation in a number of default locations:
/usr/local /usr /usr/local/libz /usr/libz /usr/local/zlib /usr/zlib
If your installation of zlib is in another location, you may specify it here.

* --enable-crypt-none

The SSH2 Transport allows for unencrypted data transmission using the "none" cipher.
Because this is such a huge security hole, it is typically disabled on
SSH2 implementations and is diabled in libssh2 by default as well.

Enabling this option will allow for "none" as a negotiable method,
however it still requires that the method be advertized by the remote end
and that no more-prefferable methods are available.

* --enable-mac-none

The SSH2 Transport also allows implementations to forego a message authentication code.
While this is less of a security risk than using a "none" cipher, it is still not
recommended as disabling MAC hashes removes a layer of security.

Enabling this option will allow for "none" as a negotiable method,
however it still requires that the method be advertized by the remote end
and that no more-prefferable methods are available.

* --disable-gex-new

The diffie-hellman-group-exchange-sha1 (dh-gex) key exchange method originally defined
an exchange negotiation using packet type 30 to request a generation pair based
on a single target value. Later refinement of dh-gex provided for range and target
values. By default libssh2 will use the newer range method.

If you experience trouble connecting to an old SSH server using dh-gex,
try this option to fallback on the older more reliable method.

* Run: make all install


Quand tu veux compiler un truc, faut surtout bien regarder le fichier "install" qui est un fichier texte avec lex explications.


Moi j'ai "réussi" à l'installer (ca m'a mit réussi) mais je sais pas si ca marche:


sudo apt-get install alien


tu dl ca:
http://dag.wieers.com/packages/libssh2/libssh2-0.12-1.2.el4.rf.i386.rpm

ensuite:
alien -d libssh2-0.12-1.2.el4.rf.i386.rpm

ca va te le tranformer en .deb (il sera peut-être à la racine de ton dossier personnel).

Tu installes, et normalement ca roule.
benhamster le 04 décembre 2006 à 19h46
:hello: Slt!
J'ai suivi tes conseils et donc j'ai fait ces opérations suivantes :

- sudo apt-get install alien
- alien -d libssh2...rpm
- dpkg -1 libssh2...deb

donc l'installation de .deb m'a donné ceci:

Sélection du paquet libssh2 précédemment désélectionné.
(Lecture de la base de données... 98868 fichiers et répertoires déjà installés.)
Dépaquetage de libssh2 (à partir de libssh2_0.12-2.2_i386.deb) ...
Paramétrage de libssh2 (0.12-2.2) ...

Je crois que toi tu n'a pas été plus loin si j'ai bien compris.

Dans ce lien : http://fr.php.net/manual/en/ref.ssh2.php , il est indiqué que après avoir installé open-ssl et libssh2 on doit installer pear.

Donc j'ai fait cette commande pour l'installer :

. apt-get install php4-pear php4-dev

et puis grace a pear on allait installer ssh2-beta grace à cette commande :

pear install ssh2-beta

Mais en installant ssh2-beta il m'a indiqué ceci :

downloading ssh2-0.10.tgz ...
Starting to download ssh2-0.10.tgz (22,187 bytes)
........done: 22,187 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20021010
building in /var/tmp/pear-build-root/ssh2-0.10
running: /tmp/tmpu27Fk2/ssh2-0.10/configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM
checking for PHP extension directory... /usr/lib/php4/20020429
checking for re2c... exit 0;
checking for gawk... no
checking for mawk... mawk
checking for ssh2 support... yes, shared
checking for ssh2 files in default path... found in /usr
checking for libssh2_banner_set in -lssh2... no
configure: error: libssh2 version >= 0.4 not found
`/tmp/tmpu27Fk2/ssh2-0.10/configure'


D'après lui libssh2 n'est pas installé!!!
Existe t - il une commande ou je ne sais pas quoi qui permet de verifier si c'est vraiment installé???
benhamster
merci d'avance
benhamster le 04 décembre 2006 à 19h47
up
benhamster le 10 décembre 2006 à 11h53
:hello:
J'ai enfin compris pourquoi tes 2 commandes ne fonctionnaient pas! Je n'avais pas attendus assez longtemp donc il n'a pas su m'afficher les fichiers trouvés!

Si j'ai bien compris ces 2 commandes servent a trouver tous les fichiers contenant libssh2.

Voici le résultat de ces 2 commandes:

debian:~# updatedb
locate libssh2
debian:~# locate libssh2
/home/benoit/libssh2-0.12-1.2.el4.rf.i386.rpm
/home/benoit/libssh2_0.12-2.2_i386.deb
/home/benoit/libssh2-0.14
/home/benoit/libssh2-0.14/config.guess
/home/benoit/libssh2-0.14/config.log
/home/benoit/libssh2-0.14/config.status
/home/benoit/libssh2-0.14/config.sub
/home/benoit/libssh2-0.14/configure
/home/benoit/libssh2-0.14/include
/home/benoit/libssh2-0.14/include/libssh2_config.h
/home/benoit/libssh2-0.14/include/libssh2_config.h.in
/home/benoit/libssh2-0.14/include/libssh2.h
/home/benoit/libssh2-0.14/include/libssh2_priv.h
/home/benoit/libssh2-0.14/include/libssh2_publickey.h
/home/benoit/libssh2-0.14/include/libssh2_sftp.h
/home/benoit/libssh2-0.14/INSTALL
/home/benoit/libssh2-0.14/install-sh
/home/benoit/libssh2-0.14/LICENSE
/home/benoit/libssh2-0.14/Makefile
/home/benoit/libssh2-0.14/Makefile.in
/home/benoit/libssh2-0.14/mkinstalldirs
/home/benoit/libssh2-0.14/README
/home/benoit/libssh2-0.14/src
/home/benoit/libssh2-0.14/src/channel.c
/home/benoit/libssh2-0.14/src/comp.c
/home/benoit/libssh2-0.14/src/crypt.c
/home/benoit/libssh2-0.14/src/hostkey.c
/home/benoit/libssh2-0.14/src/kex.c
/home/benoit/libssh2-0.14/src/mac.c
/home/benoit/libssh2-0.14/src/Makefile
/home/benoit/libssh2-0.14/src/Makefile.in
/home/benoit/libssh2-0.14/src/misc.c
/home/benoit/libssh2-0.14/src/packet.c
/home/benoit/libssh2-0.14/src/publickey.c
/home/benoit/libssh2-0.14/src/scp.c
/home/benoit/libssh2-0.14/src/session.c
/home/benoit/libssh2-0.14/src/sftp.c
/home/benoit/libssh2-0.14/src/userauth.c
/home/benoit/libssh2-0.14/ssh2_sample.c
/home/benoit/libssh2-0.14/win32
/home/benoit/libssh2-0.14/win32/config.mk
/home/benoit/libssh2-0.14/win32/libssh2_config.h
/home/benoit/libssh2-0.14/win32/libssh2.dsp
/home/benoit/libssh2-0.14/win32/libssh2.dsw
/home/benoit/libssh2-0.14/win32/rules.mk
/home/benoit/libssh2-0.14/win32/ssh2_sample.dsp
/usr/include/libssh2.h
/usr/include/libssh2_publickey.h
/usr/include/libssh2_sftp.h
/usr/lib/libssh2.so
/usr/share/doc/libssh2
/usr/share/doc/libssh2/changelog.Debian.gz
/usr/share/doc/libssh2/copyright
/var/lib/dpkg/info/libssh2.list
/var/lib/dpkg/info/libssh2.md5sums

Tout ce qui est dans /home/benoit/ c'est le répértoire ou j'ai mis le tar.gz décompréssé donc c'est normal qui est tous ca!
Par contre si j'ai bien compris libssh2 est bien installé vu qu'il se trouve dans /usr/ et dans /var
Est-ce-que j'ai bien compris?
Mais si libssh2 est bien installé pourquoi que pear me dit qu'il n'est pas bien installé?
Faut-il faire un chmod 777 pour être sur qu'il est autorisé a aller dans ces fichiers ???
benhamster
a+
benhamster le 10 décembre 2006 à 11h55
up
benhamster le 10 décembre 2006 à 12h38
:hello: Tu n'as pas a dl shh2-beta c'est pear qui te le download de je ne sais trop où. C'est un peu comme apt-get install tu ne doit pas aller sur internet aller chercher le fichier à dl toi même. Donc pear le fait automatiquement comme apt-get install
a+
benhamster
benhamster le 10 décembre 2006 à 13h01
lol Est-ce que tu crois que libssh2 est installé?
secwineman le 10 décembre 2006 à 15h57
updatedb
locate zlib.h

Quznd tu as trouvé le chemin, tu compilera (oton archive initiale :D ) avec l'option --with-zlib=/ou_tu_as_trouve_/zlib.h
benhamster le 11 décembre 2006 à 18h34
:hello: Slt la recherche de zlib : /usr/include/linux/zlib.h


et puis j'ai éxecuté cette commande: make all install --with-zlib=/usr/include/linux/zlib.h :

debian:/home/benoit/libssh2-0.14# make all install --with-zlib=/usr/include/linux/zlib.h
make: option non reconnue « --with-zlib=/usr/include/linux/zlib.h »
Usage : make [options] [cible] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-overrides
Environment variables override makefiles.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from commands.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is below N.
-n, --just-print, --dry-run, --recon
Don't actually run any commands; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake it.
-p, --print-data-base Print make's internal database.
-q, --question Run no commands; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo commands.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.

This program built for i386-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
debian:/home/benoit/libssh2-0.14#




donc après j'ai essayé de metre --with... entre crochet donc : make all install [--with-zlib=/usr/include/linux/zlib.h]:

debian:/home/benoit/libssh2-0.14# make all install [--with-zlib=/usr/include/linux/zlib.h]
make[1]: Entering directory `/home/benoit/libssh2-0.14/src'
gcc -o channel.o channel.c -c -g -O2 /usr/include -Wall -I../include/ -fPIC
gcc: ne peut spécifier -o avec -c ou -S et de multiples compilations
make[1]: *** [channel.o] Erreur 1
make[1]: Leaving directory `/home/benoit/libssh2-0.14/src'
make: *** [all] Erreur 1
debian:/home/benoit/libssh2-0.14#


merci d'avance
benhamster
benhamster le 11 décembre 2006 à 20h12
au configure ????
que veux-tu dire par là???
benhamster
Lord Winner le 12 décembre 2006 à 09h45
./configure --with-zlib=/usr/include/linux/zlib.h
;)
-------
Contre DADVSI et similaires: http://eucd.info
La GP2X (http://www.gbax.com/): une console portable libre !
Dshield (http://www.dshield.org/): soumettez vos logs firewall pour aider à repérer les attaquants !
benhamster le 12 décembre 2006 à 17h33
Ah ok lol je n'avais pas compris!!! :lol:
Bon ben voici le résultat

debian:/home/benoit/libssh2-0.14# ./configure --with-zlib=/usr/include/linux/zli b.h
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for socket in -lsocket... no
checking for ceil in -lm... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking for OpenSSL... Using paths from pkg-config
checking for libz... Cannot find libz's <zlib.h>
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for poll... no
checking for gettimeofday... no
checking for select... no
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/libssh2_config.h
config.status: include/libssh2_config.h is unchanged

et puis on doit faire le make all install si j'ai bien compris :

debian:/home/benoit/libssh2-0.14# make all install
make[1]: Entering directory `/home/benoit/libssh2-0.14/src'
gcc -o channel.o channel.c -c -g -O2 /usr/include -Wall -I../include/ -fPIC
gcc: ne peut spécifier -o avec -c ou -S et de multiples compilations
make[1]: *** [channel.o] Erreur 1
make[1]: Leaving directory `/home/benoit/libssh2-0.14/src'
make: *** [all] Erreur 1
benhamster le 12 décembre 2006 à 17h34
Ah ok lol je n'avais pas compris!!! :lol:
Bon ben voici le résultat

debian:/home/benoit/libssh2-0.14# ./configure --with-zlib=/usr/include/linux/zli b.h
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for socket in -lsocket... no
checking for ceil in -lm... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking for OpenSSL... Using paths from pkg-config
checking for libz... Cannot find libz's <zlib.h>
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for poll... no
checking for gettimeofday... no
checking for select... no
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/libssh2_config.h
config.status: include/libssh2_config.h is unchanged

et puis on doit faire le make all install si j'ai bien compris :

debian:/home/benoit/libssh2-0.14# make all install
make[1]: Entering directory `/home/benoit/libssh2-0.14/src'
gcc -o channel.o channel.c -c -g -O2 /usr/include -Wall -I../include/ -fPIC
gcc: ne peut spécifier -o avec -c ou -S et de multiples compilations
make[1]: *** [channel.o] Erreur 1
make[1]: Leaving directory `/home/benoit/libssh2-0.14/src'
make: *** [all] Erreur 1

au fait il n'y aurai pas un problème avec la directorie src ou avec le channel.o ??
merci d'avance
benhamster
secwineman le 12 décembre 2006 à 17h36
benhamster le 12 décembre 2006 à 18h01
voici le résultat : c'est comme d'habitude

debian:/home/benoit/libssh2-0.14# make clean
make[1]: Entering directory `/home/benoit/libssh2-0.14/src'
rm -f *~ libssh2.a libssh2.so *.o
make[1]: Leaving directory `/home/benoit/libssh2-0.14/src'
rm -f ssh2_sample.o ssh2_sample
debian:/home/benoit/libssh2-0.14# make
make[1]: Entering directory `/home/benoit/libssh2-0.14/src'
gcc -o channel.o channel.c -c -g -O2 /usr/include -Wall -I../include/ -fPIC
gcc: ne peut spécifier -o avec -c ou -S et de multiples compilations
make[1]: *** [channel.o] Erreur 1
make[1]: Leaving directory `/home/benoit/libssh2-0.14/src'
make: *** [all] Erreur 1
debian:/home/benoit/libssh2-0.14# make install
make[1]: Entering directory `/home/benoit/libssh2-0.14/src'
gcc -o channel.o channel.c -c -g -O2 /usr/include -Wall -I../include/ -fPIC
gcc: ne peut spécifier -o avec -c ou -S et de multiples compilations
make[1]: *** [channel.o] Erreur 1
make[1]: Leaving directory `/home/benoit/libssh2-0.14/src'
make: *** [all] Erreur 1
debian:/home/benoit/libssh2-0.14#

benhamster
@+
Lord Winner le 12 décembre 2006 à 19h42
Hmm, bizarre...
Ne manque-t-il pas une option à passer à configure ?
Quelle est la version de gcc ? gcc --version pour l'obtenir.
-------
Contre DADVSI et similaires: http://eucd.info
La GP2X (http://www.gbax.com/): une console portable libre !
Dshield (http://www.dshield.org/): soumettez vos logs firewall pour aider à repérer les attaquants !
limax le 12 décembre 2006 à 19h50
bon je vais essayer de résoudre ton problème, on revient à zéro, tu effaces ton répertoire puis:

$ wget http://downloads.sourceforge.net/libssh2/libssh2-0.14.tar.gz?modtime=11509783(...)
$ tar zxvf libssh2-0.14.tar.gz
$ cd libssh2-0.14/

j'ai deux compilateurs gcc-4.0 et gcc-4.1
par exemple
$ export CC=/usr/bin/gcc-4.1

pourquoi utilises tu --with-zlib moi il me le trouve c'est le paquet zlib1g-dev et il y a besoin aussi de libssl-dev

$ ./configure
$ make

edit: regarde dans ton ton ./configure checking for libz... Cannot find libz's <zlib.h>
essaye de refaire les choses comme moi, effectivement il demande de faire un make all install mais essaye juste de compiler avec make pour voir si le module compile.

-->Message édité par limax le 12/12/2006 20:00:54<--
-------
gnu/debian lenny kernel 2.6.24
benhamster le 13 décembre 2006 à 16h12
Slt j'ai essayé j'ai réussi a aller jusque export CC=/usr/bin/gcc-4.1
Mais pour l'installation de zlib1g-dev, ça va pas du tout, il y a plein d'erreur de dépendence.
Ce que je peux faire, c'est te donner le login et le pass de ma machine pour que tu puisse le faire comme ça ce sera plus simple!
Mais bien sur tu me diras comment faire et j'essayerais de comprendre comment tu as fait. Car de toute façon je reformate ma debian très souvent car elle ne sert que pour des tests.

gcc --version :
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie. Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.


Merci d'avance
@+
benhamster
limax le 13 décembre 2006 à 17h56
peux tu me mettre le résultat de $ uname -a

tu as quoi comme debian etch ou sarge?
Si tu as une sarge je te conseille de passer à la etch car elle va devenir dans qcq jour stable.

Sinon si tu as déjà une etch
et si tu n'as pas de noyau récent je te suggère de le remplacer par un nouveau, pour cela tu mets dans tes sources /etc/apt/sources.list ceci
deb http://ftp.fr.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ testing main contrib non-free

deb http://www.debian-multimedia.org etch main
deb-src http://www.debian-multimedia.org etch main

ensuite # apt-get update
tu installes une version récente du noyau

# apt-cache search linux-image | grep 2.6.18
tu installes celui qui va le mieux pour ta machine ainsi que les headers.

tu rebootes sur ce nouveau noyau et tu mets à jour ton ordinateur avec # apt-get upgrade

et enfin tu installes zlib1g-dev etc....

Il faut vérifier que gcc point bien sur un gcc-4.1 (ou 4.0)
# ls -l /usr/bin/gcc (pour vérifier le lien)
# rm /usr/bin/gcc (pour effacer le lien)
# ln -s /usr/bin/gcc-4.1 /usr/bin/gcc (pour refaire le lien)

Les gens d'ubuntu mettent à jour leur machine tous les 6 mois, sous debian etch (ou sid) c'est tous les jours.






-->Message édité par limax le 13/12/2006 18:03:22<--
-------
gnu/debian lenny kernel 2.6.24
page précédente  1 - 2
ou aller à la page
 page suivante


PRODUITS

TÉLÉCHARGER - LOGICIELS

JEUX VIDÉOS

LOISIRS

01NET PRO

AVIS ET COMMENTAIRES

A PROPOS DE 01NET

publicité
> Nouveauté :CIEL
Auto-entrepreneur Facile
La gestion de vos outils de facturation et de devis.

Service 01net
Newsletters 01net
abonnez vous gratuitement !
  
01Informatique
01 INFORMATIQUE
L'hebdo de référence des décideurs informatiques.
Micro Hebdo
MICRO HEBDO
L'hebdo qui vous simplifie la micro
et Internet.
L'Ordinateur Individuel
L'ORDINATEUR INDIVIDUEL
Le mensuel informatique qui vous informe et vous conseille.
Nous contacter  |  Charte de confiance  |  Voir notice légale

01net.  -  01men  -  RMC  -  BFM Radio  -  BFM TV  -  TousLesPodcasts  -  01informatique.fr  -  Association RMC-BFM
Tous droits réservés © 1999 - 2009 Internext - 01net.