description="MED format interface library"
install="install binaries"
supported="install sources,install binaries"
- disable="false"
+ disable="true"
dependancies="gcc,Hdf"
installdiskspace="1067"
temporarydiskspace="7971"
script="med-2.1.6.sh"/>
+ <product name="Med"
+ version="2.2.2"
+ description="MED format interface library"
+ install="install binaries"
+ supported="install sources,install binaries"
+ disable="false"
+ dependancies="gcc,Hdf"
+ installdiskspace="18215"
+ temporarydiskspace="38100"
+ script="med-2.2.2.sh"/>
<product name="Vtk"
version="4.2"
description="Image processing, 3D graphics and visualization software system"
description="MED format interface library"
install="install binaries"
supported="install sources,install binaries"
- disable="false"
+ disable="yes"
dependancies="gcc,Hdf"
installdiskspace="1067"
temporarydiskspace="7971"
script="med-2.1.6.sh"/>
+ <product name="Med"
+ version="2.2.2"
+ description="MED format interface library"
+ install="install binaries"
+ supported="install sources,install binaries"
+ disable="false"
+ dependancies="gcc,Hdf"
+ installdiskspace="18215"
+ temporarydiskspace="38100"
+ script="med-2.2.2.sh"/>
<product name="Vtk"
version="4.2"
description="Image processing, 3D graphics and visualization software system"
description="MED format interface library"
install="install binaries"
supported="install sources,install binaries"
- disable="false"
+ disable="yes"
dependancies="gcc,Hdf"
installdiskspace="1067"
temporarydiskspace="7971"
script="med-2.1.6.sh"/>
+ <product name="Med"
+ version="2.2.2"
+ description="MED format interface library"
+ install="install binaries"
+ supported="install sources,install binaries"
+ disable="false"
+ dependancies="gcc,Hdf"
+ installdiskspace="18215"
+ temporarydiskspace="38100"
+ script="med-2.2.2.sh"/>
<product name="Vtk"
version="4.2"
description="Image processing, 3D graphics and visualization software system"
--- /dev/null
+#!/bin/sh
+
+check_version()
+{
+if [ -z "$MED2HOME" ]; then
+ #echo "MED2HOME doesn't set"
+ return 1
+fi
+check_lib_version libmed.so.1.0.1 ${MED2HOME}/lib
+if [ "$?" -eq "0" ]; then
+ #echo "The product ${PRODUCT} has been already installed on yours system"
+ return 0
+fi
+return 1
+}
+
+print_env()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MED2HOME=\${INSTALL_ROOT}/med-2.2.2
+export PATH=\${MED2HOME}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${MED2HOME}/lib:\${LD_LIBRARY_PATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+}
+
+# looks for the native product and collects it's environment (used by make_env())
+try_native(){
+check_version
+if [ $? -eq 0 ] ; then
+ tmp="\${MED2HOME}/bin ${MED2HOME}/bin \${PATH} ${PATH}";
+ path=`sort_path ${tmp}`
+ tmp="\${MED2HOME}/lib ${MED2HOME}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
+ ld_library_path=`sort_path ${tmp}`
+ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MED2HOME=${MED2HOME}
+export PATH=${path}
+export LD_LIBRARY_PATH=${ld_library_path}
+##
+EOF
+ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+ return 0
+fi
+return 1;
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/med_fichier2.2.2.src.tar.gz -C ${INSTALL_WORK}
+
+cd ${PRODUCT_WORK}
+makedir ${PRODUCT_DIR}
+
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
+
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
+
+rm -fr ${PRODUCT_WORK}
+print_env
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/med-2.2.2.tar.gz -C ${INSTALL_ROOT}
+
+print_env
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="med" ; fi
+export PRODUCT="med-2.2.2"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_WORK=${INSTALL_WORK}/med_fichier2.2.2.src
+source ./common.sh
+$PROCEDURE
HDF5 Version: 1.4.4</td>
</tr>
<tr>
- <td>Med 2.1.6</td>
+ <td>Med 2.2.2</td>
<td>existence of MED2HOME <br>
- existence of libmed.so.0.0.0</td>
+ existence of libmed.so.1.0.1</td>
<td>set MED2HOME if you have preinstalled version of med</td>
<td>Unfortunately we can't check version number. <br>
- We try to find libmed.so.0.0.0 in ${MED2HOME}/lib folder. <br>
+ We try to find libmed.so.1.0.1 in ${MED2HOME}/lib folder. <br>
If you have problem with preinstalled version of med reinstall it.</td>
</tr>
<tr>
</p>
<p><font color="#000000">Example:</font> <br>
- <i><font color="#000000">med-2.1.6.sh install_binary /tmp/work ./Products/BINARIES/RedHat8.0
+ <i><font color="#000000">med-2.2.2.sh install_binary /tmp/work ./Products/BINARIES/RedHat8.0
/usr/salome 'gcc Hdf' med</font></i> </p>
<p><font color="#000000">Copy created script into the <i><Install_Wizard_root_directory>/config_files</i>