Commit 93ed35295a58c82e5f9954a3295f46ebc44157e4
1 parent
bd3f9f7f
*** empty log message ***
Showing
1 changed file
with
16 additions
and
2 deletions
Show diff stats
anubis_distrib/linux_install/install
| ... | ... | @@ -93,6 +93,20 @@ function install_library () |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | |
| 96 | +# Chech the existence of a library | |
| 97 | +function check_library () | |
| 98 | + { | |
| 99 | + # $1 is the soname of the library | |
| 100 | + # $2 is the realname of the library | |
| 101 | + # $3 is the directory where the library must be installed | |
| 102 | + # We just test if the soname exists | |
| 103 | + if [ -e "$3/$1" ] | |
| 104 | + then echo " " Library "$3/$2" is installed; | |
| 105 | + else echo " " You should install "$3/$2" manually; | |
| 106 | + fi | |
| 107 | + } | |
| 108 | + | |
| 109 | + | |
| 96 | 110 | |
| 97 | 111 | # installing Anubis as root |
| 98 | 112 | function install_as_root () |
| ... | ... | @@ -124,7 +138,7 @@ function install_as_root () |
| 124 | 138 | install_library "libX11.so.6" "libX11.so.6.2" "/usr/X11R6/lib"; |
| 125 | 139 | install_library "libdl.so.2" "libdl-2.3.2.so" "/lib"; |
| 126 | 140 | install_library "libstdc++.so.5" "libstdc++.so.5.0.7" "/usr/lib"; |
| 127 | - #install_library "libpthread.so.0" "libpthread-0.10.so" "/lib"; | |
| 141 | + check_library "libpthread.so.0" "libpthread-0.10.so" "/lib"; | |
| 128 | 142 | install_library "libgcc_s.so.1" "libgcc_s.so.1" "/lib"; |
| 129 | 143 | |
| 130 | 144 | echo -e "\n---" Configuring $MUST_LDCONFIG libraries "---"; |
| ... | ... | @@ -167,7 +181,7 @@ function install_as_non_root () |
| 167 | 181 | install_library "libX11.so.6" "libX11.so.6.2" "$HOME/anubis/lib"; |
| 168 | 182 | install_library "libdl.so.2" "libdl-2.3.2.so" "$HOME/anubis/lib"; |
| 169 | 183 | install_library "libstdc++.so.5" "libstdc++.so.5.0.7" "$HOME/anubis/lib"; |
| 170 | - #install_library "libpthread.so.0" "libpthread-0.10.so" "$HOME/anubis/lib"; | |
| 184 | + check_library "libpthread.so.0" "libpthread-0.10.so" "$HOME/anubis/lib"; | |
| 171 | 185 | install_library "libgcc_s.so.1" "libgcc_s.so.1" "$HOME/anubis/lib"; |
| 172 | 186 | add_value_to_LD_LIBRARY_PATH "$HOME/anubis/lib"; |
| 173 | 187 | ... | ... |