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 30/10/2023, 12:06] andykimpe |
compiler_sans_droit_admin [Le 14/11/2023, 16:11] (Version actuelle) andykimpe |
||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
====== en attendant une doc complète ====== | ====== en attendant une doc complète ====== | ||
====== merci de ne pas le supprimer ====== | ====== merci de ne pas le supprimer ====== | ||
- | |||
- | |||
variable utile pour compiler en tant qu'utilisateur | variable utile pour compiler en tant qu'utilisateur | ||
Ligne 10: | Ligne 8: | ||
<code>export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:~/local/bin | <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 LD_LIBRARY_PATH=~/local/lib | ||
- | export PKG_CONFIG_PATH=~/local/lib/pkgconfig | ||
export CPPFLAGS='-I~/local/include' | export CPPFLAGS='-I~/local/include' | ||
export LDFLAGS='-L~/local/lib -lmaxminddb' | export LDFLAGS='-L~/local/lib -lmaxminddb' | ||
export LIBDIR=~/local/lib | export LIBDIR=~/local/lib | ||
- | export MAXMINDB_CFLAGS="-I~/local/include/maxminddb" | + | export MAXMINDB_CFLAGS="-I~/local/include/" |
export MAXMINDB_LIBS="-L~/local/lib -lmaxminddb" | export MAXMINDB_LIBS="-L~/local/lib -lmaxminddb" | ||
export LIB=~/local/lib | export LIB=~/local/lib | ||
- | export LIBS=~/local/lib | + | export LIBS="-lmaxminddb" |
- | export LD_RUN_PATH=~/local</code> | + | export LD_RUN_PATH=~/local/lib</code> |
- | + | ||
- | <code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code><code></code> | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | <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 45: | 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 75: | 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> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Ligne 81: | Ligne 96: | ||
- | --with-ld-opt='-Wl,-z,relro -Wl,--as-needed -static -Wl,-rpath=/local/lib' | ||