Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
compiler_sans_droit_admin [Le 29/10/2023, 20:04] andykimpe |
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 24: | Ligne 36: | ||
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: | Libraries have been installed in: | ||
~/local/lib | ~/local/lib | ||
Ligne 54: | Ligne 62: | ||
See any operating system documentation about shared libraries for | See any operating system documentation about shared libraries for | ||
more information, such as the ld(1) and ld.so(8) manual pages. | 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> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||