You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo" --configure-etc Configure the files in the 'etc' folder. Unless '--enable-native-compilers-toolchain' is specified, the configuration will not affect the 'etc/Makeconf' file to preserve the original compilers toolchain configuration."
49
-
echo" --enable-native-compilers-toolchain Include the 'etc/Makefile' file into the configuration. It will replace the original compiler toolchain configuration in 'etc/Makefile' with the native compilers toolchain."
50
-
if [[ "$OSTYPE"=="darwin"* ]];then
46
+
echo""
47
+
echo"optional arguments:"
48
+
echo" --configure-etc Configure the files in the 'etc' folder. Unless '--enable-native-compilers-toolchain' is specified, the configuration will not affect the 'etc/Makeconf' file to preserve the original compilers toolchain configuration."
49
+
echo" --enable-native-compilers-toolchain Include the 'etc/Makefile' file into the configuration. It will replace the original compiler toolchain configuration in 'etc/Makefile' with the native compilers toolchain."
50
+
if [[ "$OSTYPE"=="darwin"* ]];then
51
51
echo" --gcc-lib-path <path> Use the <path> to locate the required gfortran libraries."
52
-
fi
52
+
echo" --macos-no-homebrew Allows the script to proceed even if the target system does not have homebrew"
53
+
fi
53
54
54
-
echo""
55
-
echo"examples:"
56
-
echo" * Basic FastR configuration:"
57
-
echo""
58
-
echo" configure_fastr"
59
-
echo""
60
-
echo" * An advanced FastR configuration with an additional configuration of the 'etc' folder except 'etc/Makefile':"
61
-
echo""
62
-
echo" configure_fastr --configure-etc"
63
-
echo""
55
+
echo""
56
+
echo"examples:"
57
+
echo" * Basic FastR configuration:"
58
+
echo""
59
+
echo" configure_fastr"
60
+
echo""
61
+
echo" * An advanced FastR configuration with an additional configuration of the 'etc' folder except 'etc/Makefile':"
62
+
echo""
63
+
echo" configure_fastr --configure-etc"
64
+
echo""
64
65
if [[ "$OSTYPE"=="darwin"* ]];then
65
-
echo" * The most advanced FastR configuration with the complete configuration of the 'etc' folder. It also specifies the GCC path to locate the required libraries:"
echo" * The most advanced FastR configuration with the complete configuration of the 'etc' folder. It also specifies the GCC path to locate the required libraries:"
if [ "$FOUND"!="$GFORTRAN_LIBRARIES_CHECK" ] ;then
202
-
echo"From expected libraries '$GFORTRAN_LIBRARIES_CHECK' found only '$FOUND'."
203
-
echo"Please ensure that you have gcc installed on your system, e.g., using homebrew or MacPorts (brew install gcc)."
204
-
echo"If it is installed in a non-standard location, you can specify its location using the '--gcc-lib-path' parameter."
205
-
echo""
206
-
printHelp
207
-
exit 1
208
-
fi
209
258
259
+
if [ "$FOUND"!="$GFORTRAN_LIBRARIES_CHECK" ] ;then
260
+
echo"From expected libraries '$GFORTRAN_LIBRARIES_CHECK' found only '$FOUND'."
261
+
echo"Please ensure that you have GFortran 3 installed on your system."
262
+
echo"We suggest to use homebrew and install the necessary dependencies with:"
263
+
echo" brew install gcc@4.9"
264
+
echo"If the GFortran 3 runtime libraries are installed in a non-standard location, you can specify that location using the '--gcc-lib-path' parameter."
265
+
exit 1
266
+
else
267
+
echo"Succesfully updated FastR installation to use the GFortran 3 system libraries."
268
+
FASTR_HOME=$(cd ..;pwd -P )
269
+
echo"The fortran compiler flags in $FASTR_HOME/etc/Makeconf (variable FLIBS) were not updated and must be adjusted manually!"
270
+
fi
271
+
fi# which brew
210
272
else
211
273
echo"Unknown operating system."
212
274
echo"FastR may still work."
@@ -221,16 +283,16 @@ fi
221
283
res=$?
222
284
if [[ $res!= 0 ]];then
223
285
echo"The configuration step failed."
224
-
echo"The log was saved into ${PWD}/configure.log"
225
-
echo"FastR may still work, but compilation of some R packages may fail"
226
-
exit 1
227
-
fi
228
-
ed Makeconf < edMakeconf.etc > /dev/null 2>/dev/null
0 commit comments