1

Pour faire plaisir à Bobounet, j'essaie d'installer, et donc de compiler, un proxy IRC ( http://ircproxy.sourceforge.net/ ).

Manque de pot, il est méchant avec moi et ne veut pas se laisser compiler gentiment sad


C'est un ./configure à exécuter, que je lance avec ./configure --prefix=/Users/flanker/Applications, comme d'habitude.
checking for library containing ares_init... no
A ares compatible library is required. You should install either ares or c-ares.
c-ares is preferred, it can be found on http://daniel.haxx.se/projects/c-ares/
If you know what the consequences are but still dont want ares you can disable ares with --disable-ares


J'ai donc télécharger c-ares, et utilisé
./configure --prefix=/Users/flanker/Applications ; make & make install avec c-ares. Accessoirement, j'ai bien un ares.h dans ~/Applications/include, donc tout est normal (et j'ai la lib dans ~/Applications/lib/).
Du coup, il doit me manquer une variable d'environnement, mais laquelle ? J'en ai déjà défini quelques unes :
LOCAL=$HOME/Applications
export LD_LIBRARY_PATH=$LOCAL/lib:$LD_LIBRARY_PATH
export LIBPATH=$LOCAL/lib:$LIBPATH
export LIBRARY_PATH=$LOCAL/lib:$LIBRARY_PATH
export MANPATH=$LOCAL/man:$MANPATH
export INCLUDE=$LOCAL/include:$INCLUDE
export C_INCLUDE_PATH=$LOCAL/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=$LOCAL/include:$CPLUS_INCLUDE_PATH


Et là, je sèche sad
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

2

le ./configure est un script shell, non? ca se debuggue.

tu greppe pour trouver a quel endroit il teste la presence de ares, tu mets des echo pour voir les valeurs des diverses variables qu'il utilise dans le test, tu comprends pourquoi il ne trouve pas ce qu'il cherche, et tu repares smile
avatar
I'm on a boat motherfucker, don't you ever forget

3

./configure --help:
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ircproxy]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-assert        Disable assertions
  --disable-ares          Disable ares, this means trouble!
  --disable-ipv6          Disable IPv6 support
  --disable-ssl           Disable SSL support
  --enable-win32          Enable independent win32 support
  --disable-memdebug      Disable memory debugging
  --disable-fddebug       Disable file descriptor debugging
  --enable-identd         Enable the internal ident daemon
  --enable-debug          Enable debugging

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-openssl          Use openssl
  --with-gnutls           Use gnutls

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  [b]LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>[/b]
  LIBS        libraries to pass to the linker, e.g. -l<library>
  [b]CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>[/b]
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <jonasia_at_closetothewind_dot_net>.

==> LD_FLAGS & CPPFLAGS