Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
compiler_sans_droit_admin [Le 29/10/2023, 19:27] andykimpe créée |
compiler_sans_droit_admin [Le 14/11/2023, 16:11] (Version actuelle) andykimpe |
||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
====== merci de ne pas le supprimer ====== | ====== merci de ne pas le supprimer ====== | ||
+ | variable utile pour compiler en tant qu'utilisateur | ||
+ | <code>export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:~/local/bin | ||
+ | export LD_LIBRARY_PATH=~/local/lib | ||
+ | export CPPFLAGS='-I~/local/include' | ||
+ | export LDFLAGS='-L~/local/lib -lmaxminddb' | ||
+ | export LIBDIR=~/local/lib | ||
+ | export MAXMINDB_CFLAGS="-I~/local/include/" | ||
+ | export MAXMINDB_LIBS="-L~/local/lib -lmaxminddb" | ||
+ | export LIB=~/local/lib | ||
+ | export LIBS="-lmaxminddb" | ||
+ | export LD_RUN_PATH=~/local/lib</code> | ||
- | variable utile pour compiler en tant qu'utilisateur | + | <code></code> |
+ | <code> | ||
export ORIG_PKG_CONFIG_PATH=$PKG_CONFIG_PATH | export ORIG_PKG_CONFIG_PATH=$PKG_CONFIG_PATH | ||
- | export PKG_CONFIG_PATH=~/local:$PKG_CONFIG_PATH | + | export PKG_CONFIG_PATH=~/local/lib/pkgconfigl:$PKG_CONFIG_PATH |
export ORIG_PATH=$PATH | export ORIG_PATH=$PATH | ||
Ligne 22: | Ligne 34: | ||
export CPPFLAGS='-I-I~/local/include' | export CPPFLAGS='-I-I~/local/include' | ||
- | export LDFLAGS='-L~/local/lib/' | + | export LDFLAGS='-L~/local/lib' |
- | export LIBFFI_CFLAGS=-I~/local/lib/libffi-3.1/include | + | export LIBFFI_CFLAGS="-I~/local/lib/libffi-3.1/include" |
- | LIBFFI_LIBS="-L~/local/lib -lffi" | + | export LIBFFI_LIBS="-L~/local/lib -lffi" |
export SHELL=~/local/bin/zsh # set the shell environment variable | export SHELL=~/local/bin/zsh # set the shell environment variable | ||
./configure --prefix=~/local -I~/local/include -L~/local/lib | ./configure --prefix=~/local -I~/local/include -L~/local/lib | ||
+ | </code> | ||
+ | <code></code> | ||
+ | <code> | ||
+ | Libraries have been installed in: | ||
+ | ~/local/lib | ||
+ | |||
+ | If you ever happen to want to link against installed libraries | ||
+ | in a given directory, LIBDIR, you must either use libtool, and | ||
+ | specify the full pathname of the library, or use the '-LLIBDIR' | ||
+ | flag during linking and do at least one of the following: | ||
+ | - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable | ||
+ | during execution | ||
+ | - add LIBDIR to the 'LD_RUN_PATH' environment variable | ||
+ | during linking | ||
+ | - use the '-Wl,-rpath -Wl,LIBDIR' linker flag | ||
+ | - have your system administrator add LIBDIR to '/etc/ld.so.conf' | ||
+ | |||
+ | See any operating system documentation about shared libraries for | ||
+ | more information, such as the ld(1) and ld.so(8) manual pages. | ||
+ | </code> | ||
+ | <code></code> | ||
+ | <code> | ||
+ | --with-ld-opt='-Wl,-z,relro -Wl,--as-needed -static -Wl,-rpath=/local/lib' | ||
+ | </code> | ||
+ | <code></code> | ||
+ | pour python 2 | ||
+ | <code> | ||
+ | ./configure --prefix=~/local --enable-shared --enable-unicode=ucs4 LDFLAGS="-Wl,-rpath=~/local/lib" | ||
+ | </code><code></code><code></code> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||