Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_pdata
Commits
7e43fc23
Commit
7e43fc23
authored
Feb 05, 2016
by
incardon
Browse files
Fixing installation process
parent
d92b2d61
Changes
4
Hide whitespace changes
Inline
Side-by-side
install
View file @
7e43fc23
...
...
@@ -92,6 +92,12 @@ if [ ! -d src/config ]; then
fi
cd
..
cd
openfpm_numerics
if
[
!
-d
src/config
]
;
then
mkdir
src/config
fi
cd
..
# Create config directory
if
[
!
-d
src/config
]
;
then
...
...
script/detect_gfortran
deleted
100755 → 0
View file @
d92b2d61
#! /bin/bash
function
detect_gfortran
()
{
command
-v
$1
>
/dev/null 2>&1
if
[
$?
-ne
0
]
;
then
dgc_ret
=
0
return
fi
dgc_ret
=
1
}
script/pre_req
View file @
7e43fc23
...
...
@@ -6,13 +6,14 @@ source script/discover_package_manager
source
script/discover_os
source
script/solve_autoconf
source
script/solve_gpp
source
script/solve_gfortran
source
script/solve_cmake
source
script/solve_git
source
script/solve_wget
source
script/solve_automake
source
script/solve_brew
source
script/solve_libtool
source
script/solve_
g
fortran
source
script/solve_fortran
source
script/detect_gcc
source
script/detect_osx
source
script/show_solutions
...
...
@@ -185,6 +186,7 @@ fi
detect_gcc_or_clang g++
if
[
$dgc_ret
-eq
0
]
;
then
echo
-e
"g++
\0
33[91;5;1m FAILED
\0
33[0m"
solve_gpp
$platform
detect_gcc_or_clang
$compiler_gpp
if
[
$dgc_ret
-eq
0
]
;
then
...
...
@@ -203,6 +205,7 @@ fi
detect_fortran gfortran
if
[
$dgc_ret
-eq
0
]
;
then
echo
-e
"gfortran
\0
33[91;5;1m FAILED
\0
33[0m"
solve_gfortran
$platform
detect_fortran
$compiler_fortran
if
[
$dgc_ret
-eq
0
]
;
then
...
...
script/solve_gfortran
View file @
7e43fc23
...
...
@@ -11,13 +11,13 @@ if [ x"$pcman" = x"" ]; then
fi
if
[
x
"
$1
"
=
x
"osx"
]
;
then
commands[0]
=
"
$pcman
install g
fortran
"
commands[0]
=
"
$pcman
install g
cc
"
possible_solutions
"
${
commands
[@]
}
"
echo
"Executing:
${
command
[
$possible_solutions_ret
]
}
"
eval
${
commands
[
$possible_solutions_ret
]
}
elif
[
x
"
$1
"
=
x
"linux"
]
;
then
commands[0]
=
"su -c
\"
$pcman
install
cmake
\"
"
commands[1]
=
"sudo
$pcman
install
cmake
"
commands[0]
=
"su -c
\"
$pcman
install
gfortran
\"
"
commands[1]
=
"sudo
$pcman
install
gfortran
"
possible_solutions
"
${
commands
[@]
}
"
echo
"Executing:
${
command
[
$possible_solutions_ret
]
}
"
eval
${
commands
[
$possible_solutions_ret
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment