Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
argupta
openfpm_pdata
Commits
ea8a8ae0
Commit
ea8a8ae0
authored
9 years ago
by
incardon
Browse files
Options
Downloads
Patches
Plain Diff
fixing install script
parent
8c3bd510
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install
+20
-17
20 additions, 17 deletions
install
script/pre_req
+2
-31
2 additions, 31 deletions
script/pre_req
with
22 additions
and
48 deletions
install
+
20
−
17
View file @
ea8a8ae0
#! /bin/bash
source
script/discover_os
discover_os
## Check and try to install the prerequisites
script/pre_req
...
...
@@ -105,12 +108,13 @@ if [ $MPI_installed -eq 1 ]; then
echo
-e
"
\0
33[1;34;5m ----------------- MPI -----------------
\0
33[0m"
echo
-e
" MPI has been installed into:
\0
33[1m
$HOME
/MPI
\0
33[0m"
echo
""
echo
-e
"
\0
33[1;34m On Linux:
\0
33[0m"
echo
-e
"
\0
33[1m export PATH=
\"\$
PATH:
\$
HOME/MPI
\"
\0
33[0m "
echo
-e
"
\0
33[1m export LD_LIBRARY_PATH=
\"\$
LD_LIBRARY_PATH:
\$
HOME/MPI/lib
\"
\0
33[0m "
echo
-e
"
\0
33[1;34m On OSX:
\0
33[0m"
echo
-e
"
\0
33[1m export PATH=
\"\$
PATH:
\$
HOME/MPI
\"
\0
33[0m "
echo
-e
"
\0
33[1m export DYLD_LIBRARY_PATH=
\"\$
DYLD_LIBRARY_PATH:
\$
HOME/MPI/lib
\"
\0
33[0m"
if
[
x
"
$platform
"
=
"linux"
]
;
then
echo
-e
"
\0
33[1m export PATH=
\"\$
PATH:
\$
HOME/MPI
\"
\0
33[0m "
echo
-e
"
\0
33[1m export LD_LIBRARY_PATH=
\"\$
LD_LIBRARY_PATH:
\$
HOME/MPI/lib
\"
\0
33[0m "
else
echo
-e
"
\0
33[1m export PATH=
\"\$
PATH:
\$
HOME/MPI
\"
\0
33[0m "
echo
-e
"
\0
33[1m export DYLD_LIBRARY_PATH=
\"\$
DYLD_LIBRARY_PATH:
\$
HOME/MPI/lib
\"
\0
33[0m"
fi
fi
if
[
$METIS_installed
-eq
1
]
;
then
...
...
@@ -119,11 +123,11 @@ if [ $METIS_installed -eq 1 ]; then
echo
-e
"
\0
33[1;34;5m ---------------- METIS ----------------
\0
33[0m"
echo
-e
" METIS has been installed into:
\0
33[1m
$HOME
/METIS
\0
33[0m"
echo
""
echo
-e
"
\0
33[1;34m On Linux:
\0
33[0m"
echo
-e
"
\0
33[1m export LD_LIBRARY_PATH=
\"\$
LD_LIBRARY_PATH:
\$
HOME/METIS/lib
\"
\0
33[0m "
e
cho
-e
"
\0
33[1;34m On OSX:
\0
33[0m"
echo
-e
"
\0
33[1m export DYLD_LIBRARY_PATH=
\"\$
DYLD_LIBRARY_PATH:
\$
HOME/METIS/lib
\"
\0
33[0m"
if
[
x
"
$platform
"
=
"linux"
]
;
then
echo
-e
"
\0
33[1m export LD_LIBRARY_PATH=
\"\$
LD_LIBRARY_PATH:
\$
HOME/METIS/lib
\"
\0
33[0m "
e
lse
echo
-e
"
\0
33[1m export DYLD_LIBRARY_PATH=
\"\$
DYLD_LIBRARY_PATH:
\$
HOME/METIS/lib
\"
\0
33[0m"
fi
fi
if
[
$BOOST_installed
-eq
1
]
;
then
...
...
@@ -132,12 +136,11 @@ if [ $BOOST_installed -eq 1 ]; then
echo
-e
"
\0
33[1;34;5m ---------------- BOOST ----------------
\0
33[0m"
echo
-e
" BOOST has been installed into:
\0
33[1m
$HOME
/BOOST
\0
33[0m"
echo
""
echo
-e
"
\0
33[1;34m On Linux:
\0
33[0m"
echo
-e
"
\0
33[1m export LD_LIBRARY_PATH=
\"\$
LD_LIBRARY_PATH:
\$
HOME/BOOST/lib
\"
\0
33[0m "
echo
-e
"
\0
33[1;34m On OSX:
\0
33[0m"
echo
-e
"
\0
33[1m export DYLD_LIBRARY_PATH=
\"\$
DYLD_LIBRARY_PATH:
\$
HOME/BOOST/lib
\"
\0
33[0m"
if
[
x
"
$platform
"
=
"linux"
]
;
then
echo
-e
"
\0
33[1m export LD_LIBRARY_PATH=
\"\$
LD_LIBRARY_PATH:
\$
HOME/BOOST/lib
\"
\0
33[0m "
else
echo
-e
"
\0
33[1m export DYLD_LIBRARY_PATH=
\"\$
DYLD_LIBRARY_PATH:
\$
HOME/BOOST/lib
\"
\0
33[0m"
fi
fi
echo
""
echo
""
This diff is collapsed.
Click to expand it.
script/pre_req
+
2
−
31
View file @
ea8a8ae0
#! /bin/bash
source
script/discover_package_manager
source
script/discover_os
platform
=
unknown
if
[[
"
$OSTYPE
"
==
"linux-gnu"
]]
;
then
echo
-e
"We are on
\0
33[1;34m LINUX
\0
33[0m"
platform
=
linux
elif
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
echo
-e
"We are on
\0
33[1;34m MAC OSX
\0
33[0m"
platform
=
osx
elif
[[
"
$OSTYPE
"
==
"cygwin"
]]
;
then
echo
-e
"We are on
\0
33[1;34m CYGWIN
\0
33[0m"
echo
"This platform is not supported"
exit
1
elif
[[
"
$OSTYPE
"
==
"msys"
]]
;
then
echo
-e
"We are on
\0
33[1;34m Microsoft Window
\0
33[0m"
echo
"This platform is not supported"
exit
1
elif
[[
"
$OSTYPE
"
==
"win32"
]]
;
then
echo
-e
"We are on
\0
33[1;34m Microsoft Window
\0
33[0m"
echo
"This platform is not supported"
exit
1
elif
[[
"
$OSTYPE
"
==
"freebsd"
*
]]
;
then
echo
-e
"We are on
\0
33[1;34m FREEBSD
\0
33[0m"
echo
"This platform is not supported"
exit
1
else
echo
-e
"We are on an
\0
33[1;34m unknown OS
\0
33[0m"
echo
"This platform is not supported"
exit
1
fi
discover_os
discover_package_manager
$platform
pcman
=
discover_package_manager_ret
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment