Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
05f390df
Commit
05f390df
authored
10 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #7336: Added QPID to Cobalt postinstall
parent
65dd973f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitattributes
+1
-0
1 addition, 0 deletions
.gitattributes
SubSystems/Online_Cobalt/install/install_qpid.sh
+87
-0
87 additions, 0 deletions
SubSystems/Online_Cobalt/install/install_qpid.sh
SubSystems/Online_Cobalt/install/postinstall.sh
+1
-0
1 addition, 0 deletions
SubSystems/Online_Cobalt/install/postinstall.sh
with
89 additions
and
0 deletions
.gitattributes
+
1
−
0
View file @
05f390df
...
@@ -4559,6 +4559,7 @@ SubSystems/LAPS_CEP/test/tExampleTest.sh eol=lf
...
@@ -4559,6 +4559,7 @@ SubSystems/LAPS_CEP/test/tExampleTest.sh eol=lf
SubSystems/Online_Cobalt/install/install_DAL.sh eol=lf
SubSystems/Online_Cobalt/install/install_DAL.sh eol=lf
SubSystems/Online_Cobalt/install/install_IERS.sh eol=lf
SubSystems/Online_Cobalt/install/install_IERS.sh eol=lf
SubSystems/Online_Cobalt/install/install_casacore.sh eol=lf
SubSystems/Online_Cobalt/install/install_casacore.sh eol=lf
SubSystems/Online_Cobalt/install/install_qpid.sh eol=lf
SubSystems/Online_Cobalt/install/lofarsys/bash_profile -text
SubSystems/Online_Cobalt/install/lofarsys/bash_profile -text
SubSystems/Online_Cobalt/install/lofarsys/bashrc -text
SubSystems/Online_Cobalt/install/lofarsys/bashrc -text
SubSystems/Online_Cobalt/install/postinstall.sh eol=lf
SubSystems/Online_Cobalt/install/postinstall.sh eol=lf
...
...
This diff is collapsed.
Click to expand it.
SubSystems/Online_Cobalt/install/install_qpid.sh
0 → 100755
+
87
−
0
View file @
05f390df
#!/bin/bash -eu
# We need to be lofarbuild to have the proper writing rights
#[ "`whoami`" == "lofarbuild" ]
# Download location for the latest QPID source
PROTON_SOURCE
=
"http://svn.apache.org/repos/asf/qpid/proton/trunk/"
QPID_SOURCE
=
"http://svn.apache.org/repos/asf/qpid/trunk/qpid/"
QPID_INSTALLDIR
=
$HOME
/src/qpid
# ********************************************
# Install latest PROTON & QPID
#
# into $QPID_INSTALLDIR
# ********************************************
echo
"Configuring PROTON and QPID..."
mkdir
-p
$QPID_INSTALLDIR
QPIDDIR
=
`
mktemp
-d
`
pushd
$QPIDDIR
>
/dev/null
echo
" Downloading PROTON..."
svn co http://svn.apache.org/repos/asf/qpid/proton/branches/0.8 proton
>
/dev/null
echo
" Configuring PROTON..."
pushd
proton
>
/dev/null
mkdir
build
cd
build
cmake
-DCMAKE_INSTALL_PREFIX
=
$QPID_INSTALLDIR
..
>
cmake.log
echo
" Building PROTON..."
make
-j
8
>
make.log
echo
" Installing PROTON..."
make
-j
8
install
>
make_install.log
# back to QPIDDIR
popd
>
/dev/null
echo
" Downloading QPID..."
svn co http://svn.apache.org/repos/asf/qpid/branches/0.30/qpid/ qpid
>
/dev/null
echo
" Configuring QPID C bindings..."
pushd
qpid/cpp
>
/dev/null
mkdir
build
cd
build
cmake
-DCMAKE_INSTALL_PREFIX
=
$QPID_INSTALLDIR
-DProton_DIR
=
/localhome/lofar/qpid/lib/cmake/Proton
-DBUILD_XML
=
OFF
-DBUILD_SSL
=
OFF
-DBUILD_BINDING_RUBY
=
OFF ..
>
cmake.log
echo
" Building QPID C bindings..."
make
-j
8
>
make.log
echo
" Installing QPID C bindings..."
make
-j
8
install
>
make_install.log
# back to QPIDDIR
popd
>
/dev/null
echo
" Building and installing QPID Python bindings..."
pushd
qpid/python
>
/dev/null
./setup.py build
>
setup_build.log
./setup.py
install
--home
=
$QPID_INSTALLDIR
>
setup_install.log
echo
" Building and installing QPID Python QMF..."
popd
>
/dev/null
pushd
qpid/extras/qmf
>
/dev/null
./setup.py build
>
setup_build.log
./setup.py
install
--home
=
$QPID_INSTALLDIR
>
setup_install.log
echo
" Building and installing QPID Python tools..."
popd
>
/dev/null
pushd
qpid/tools
>
/dev/null
./setup.py build
>
setup_build.log
./setup.py
install
--home
=
$QPID_INSTALLDIR
>
setup_install.log
echo
" Creating .profile..."
PYTHONVERSION
=
`
python
-c
'import platform; print "%s.%s" % platform.python_version_tuple()[0:2]'
`
cat
>
$QPID_INSTALLDIR
/.profile
<<
EOF
export PATH=
\$
PATH:
$QPID_INSTALLDIR
/sbin/:
$QPID_INSTALLDIR
/bin/:
$QPID_INSTALLDIR
/local/bin/
export LD_LIBRARY_PATH=
\$
LD_LIBRARY_PATH:
$QPID_INSTALLDIR
/lib:
$QPID_INSTALLDIR
/local/lib/
export PYTHONPATH=
\$
PYTHONPATH:
$QPID_INSTALLDIR
/lib/python/:
$QPID_INSTALLDIR
/lib/python
$PYTHONVERSION
/site-packages/
EOF
echo
" Cleaning up..."
popd
>
/dev/null
rm
-rf
"
$QPIDDIR
"
This diff is collapsed.
Click to expand it.
SubSystems/Online_Cobalt/install/postinstall.sh
+
1
−
0
View file @
05f390df
...
@@ -35,6 +35,7 @@ function postinstall_lofarbuild {
...
@@ -35,6 +35,7 @@ function postinstall_lofarbuild {
./install_IERS.sh
./install_IERS.sh
./install_DAL.sh
./install_DAL.sh
./install_casacore.sh
./install_casacore.sh
./install_qpid.sh
}
}
case
"
`
whoami
`
"
in
case
"
`
whoami
`
"
in
...
...
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