Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hamburg LOFAR Toolkit Installation Script
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc
Hamburg LOFAR Toolkit Installation Script
Commits
db7d1c40
Commit
db7d1c40
authored
Apr 1, 2020
by
Orgis, Dr. Thomas
Browse files
Options
Downloads
Patches
Plain Diff
build_lofar.sh: add CASACORE_LDPATH with $dyscolib
parent
fd250d8a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build_lofar.sh
+6
-0
6 additions, 0 deletions
build_lofar.sh
test.sh
+49
-0
49 additions, 0 deletions
test.sh
with
55 additions
and
0 deletions
build_lofar.sh
+
6
−
0
View file @
db7d1c40
...
...
@@ -365,6 +365,7 @@ else
fi
>>
"
$prefix
/build.log"
2>&1
||
exit
1
begin_pkg dysco
dyscolib
=
$prefix
/lib
if
[
!
-e
$prefix
/.done
]
;
then
#
# Install Dysco
...
...
@@ -713,6 +714,11 @@ EOT
pylib
=
"
$p
/lib/python
$pyver
/site-packages"
test
-d
"
$lofar_prefix
/
$pylib
"
&&
echo
"export PYTHONPATH=
\"\$
lofar_prefix/
$pylib
:
\$
PYTHONPATH
\"
"
case
$p
in
casacore
)
echo
"export CASACORE_LDPATH=
\"
$dyscolib
:
\$
CASACORE_LDPATH
\"
"
;;
esac
done
}
...
...
This diff is collapsed.
Click to expand it.
test.sh
0 → 100644
+
49
−
0
View file @
db7d1c40
print_init
()
{
cat
<<
EOT
# LOFAR Tools built by
$USER
@
$(
hostname
)
on
$(
date
)
#
# Sourcing this script shall re-create the build environment and
# add things from the LOFAR prefix to appropriate path variables.
# It does _not_ set LD_LIBRARY_PATH (unless the build environment
# does), as a proper build should use RPATH in the binaries.
# But there is LD_RUN_PATH / LIBRARY_PATH set for link-time usage.
# You can set LD_LIBRARY_PATH=
\$
LD_RUN_PATH as a hack if some binary
# fails to find its libs. But this would be a bug in the build
# script that should be fixed properly.
#
# Step 1: The build config with all variables used.
#
lofar_prefix='
$lofar_prefix
'
EOT
cat
$config
cat
<<
EOT
#
# Step 2: Paths to LOFAR tools in the prefix.
#
EOT
for
p
in
lsmtool pyBDSF wsclean dysco DP3
\
idg aoflagger python-casacore casacore
do
echo
"#
$p
"
pp
=
"
$lofar_prefix
/
$p
"
test
-d
"
$pp
/bin"
&&
echo
"export PATH=
\"\$
lofar_prefix/
$p
/bin:
\$
PATH
\"
"
test
-d
"
$pp
/lib"
&&
cat
<<
EOT
export LD_RUN_PATH=
\"\$
lofar_prefix/
$p
/lib:
\$
LD_RUN_PATH
\"
export LIBRARY_PATH=
\"\$
lofar_prefix/
$p
/lib:
\$
LIBRARY_PATH
\"
EOT
test
-d
"
$pp
/include"
&&
echo
"export CPATH=
\"\$
lofar_prefix/
$p
/include:
\$
CPATH
\"
"
pylib
=
"
$p
/lib/python
$pyver
/site-packages"
test
-d
"
$lofar_prefix
/
$pylib
"
&&
echo
"export PYTHONPATH=
\"\$
lofar_prefix/
$pylib
:
\$
PYTHONPATH
\"
"
done
}
print_init
>
"
$lofar_prefix
/init.sh"
&&
echo
"Finished installation. You can source
$lofar_prefix
/init.sh and run."
true
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
sign in
to comment