Cannot install boost, lhapdf and pythia8

Asked by Marco Merchand

Dear MG5 experts

I have installed gfortran/gcc 8.1.0 and python 2.7 on my Mac.
I am following the tutorial on feynrules/madgraph 2018 school: https://indico.ihep.ac.cn/event/7822/page/6

I did all the steps up to point 2.4 where I open the shell (MG5_aMC>)

Not I try to install pythia8 by calling 'install pythia8' and I get back the following message:

"You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
Downloading the HEPToolInstaller at:
   http://madgraph.phys.ucl.ac.be/Downloads/HEPToolsInstaller/HEPToolsInstaller_V118.tar.gz
LHAPDF was not found. Do you want to install LHPADF6? (recommended) y/n >[y] [60s to answer]
"
so I enter "y" and then I get:

"...failed darwin.compile.c++ bin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi/cpu_timer.o...
...skipped <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>libboost_timer.a(clean) for lack of <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>auto_timers_construction.o...
...skipped <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>libboost_timer.a for lack of <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>auto_timers_construction.o...
...skipped <p/Users/MarcoAntonio/Documents/MG5_aMC_v2_6_5/HEPTools/boost/lib>libboost_timer.a for lack of <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>libboost_timer.a...
darwin.compile.c++ bin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi/test_main.o
In file included from ./boost/config.hpp:48,
                 from ./boost/detail/workaround.hpp:41,
                 from ./boost/test/utils/basic_cstring/basic_cstring_fwd.hpp:19,
                 from ./boost/test/utils/basic_cstring/basic_cstring.hpp:20,
                 from ./boost/test/detail/global_typedef.hpp:15,
                 from ./boost/test/framework.hpp:17,
                 from ./boost/test/impl/test_main.ipp:17,
                 from libs/test/src/test_main.cpp:13:
./boost/config/stdlib/libstdcpp3.hpp:78:12: fatal error: unistd.h: No such file or directory
 # include <unistd.h>
            ^~~~~~~~~~
compilation terminated.

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -gdwarf-2 -fexceptions -Wno-long-long -arch x86_64 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TIMER_STATIC_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi/test_main.o" "libs/test/src/test_main.cpp"

...failed darwin.compile.c++ bin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi/test_main.o...
...skipped <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>libboost_test_exec_monitor.a(clean) for lack of <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>compiler_log_formatter.o...
...skipped <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>libboost_test_exec_monitor.a for lack of <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>compiler_log_formatter.o...
...skipped <p/Users/MarcoAntonio/Documents/MG5_aMC_v2_6_5/HEPTools/boost/lib>libboost_test_exec_monitor.a for lack of <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>libboost_test_exec_monitor.a...
...failed updating 404 targets...
...skipped 314 targets...
Finished installing boost

    > Now aborting installation of tool 'lhapdf6'.
Command "install pythia8" interrupted with error:
InvalidCmd : Installation of lhapdf6 failed."

I have also seen related questions where it is advised to install boost, then lhapdf6 and then pythia8 but that approach didn't work either.

Could you tell me how can I solve this issue?
Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Never seen this one.

I would actually advise to uninstall gcc8 and only keep gfortran.
This is the setup that I have on my mac (such that you are sure to always use clang everywhere which is a quite stable setup.

Cheers,

Olivier

> On 17 Apr 2019, at 19:52, Marco Merchand <email address hidden> wrote:
>
> New question #680310 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/680310
>
> Dear MG5 experts
>
> I have installed gfortran/gcc 8.1.0 and python 2.7 on my Mac.
> I am following the tutorial on feynrules/madgraph 2018 school: https://indico.ihep.ac.cn/event/7822/page/6
>
> I did all the steps up to point 2.4 where I open the shell (MG5_aMC>)
>
> Not I try to install pythia8 by calling 'install pythia8' and I get back the following message:
>
> "You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
> Downloading the HEPToolInstaller at:
> http://madgraph.phys.ucl.ac.be/Downloads/HEPToolsInstaller/HEPToolsInstaller_V118.tar.gz
> LHAPDF was not found. Do you want to install LHPADF6? (recommended) y/n >[y] [60s to answer]
> "
> so I enter "y" and then I get:
>
> "...failed darwin.compile.c++ bin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi/cpu_timer.o...
> ...skipped <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>libboost_timer.a(clean) for lack of <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>auto_timers_construction.o...
> ...skipped <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>libboost_timer.a for lack of <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>auto_timers_construction.o...
> ...skipped <p/Users/MarcoAntonio/Documents/MG5_aMC_v2_6_5/HEPTools/boost/lib>libboost_timer.a for lack of <pbin.v2/libs/timer/build/darwin-8.1.0/release/link-static/threading-multi>libboost_timer.a...
> darwin.compile.c++ bin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi/test_main.o
> In file included from ./boost/config.hpp:48,
> from ./boost/detail/workaround.hpp:41,
> from ./boost/test/utils/basic_cstring/basic_cstring_fwd.hpp:19,
> from ./boost/test/utils/basic_cstring/basic_cstring.hpp:20,
> from ./boost/test/detail/global_typedef.hpp:15,
> from ./boost/test/framework.hpp:17,
> from ./boost/test/impl/test_main.ipp:17,
> from libs/test/src/test_main.cpp:13:
> ./boost/config/stdlib/libstdcpp3.hpp:78:12: fatal error: unistd.h: No such file or directory
> # include <unistd.h>
> ^~~~~~~~~~
> compilation terminated.
>
> "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -gdwarf-2 -fexceptions -Wno-long-long -arch x86_64 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TIMER_STATIC_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi/test_main.o" "libs/test/src/test_main.cpp"
>
> ...failed darwin.compile.c++ bin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi/test_main.o...
> ...skipped <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>libboost_test_exec_monitor.a(clean) for lack of <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>compiler_log_formatter.o...
> ...skipped <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>libboost_test_exec_monitor.a for lack of <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>compiler_log_formatter.o...
> ...skipped <p/Users/MarcoAntonio/Documents/MG5_aMC_v2_6_5/HEPTools/boost/lib>libboost_test_exec_monitor.a for lack of <pbin.v2/libs/test/build/darwin-8.1.0/release/link-static/threading-multi>libboost_test_exec_monitor.a...
> ...failed updating 404 targets...
> ...skipped 314 targets...
> Finished installing boost
>
>> Now aborting installation of tool 'lhapdf6'.
> Command "install pythia8" interrupted with error:
> InvalidCmd : Installation of lhapdf6 failed."
>
>
> I have also seen related questions where it is advised to install boost, then lhapdf6 and then pythia8 but that approach didn't work either.
>
> Could you tell me how can I solve this issue?
> Thanks
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Marco Merchand (mamerchandmedi) said :
#2

Apparently is not trivial to uninstall gcc on a mac.
So I tried
$brew unlink gcc
Unlinking /usr/local/Cellar/gcc/8.2.0... 0 symlinks removed

then I hit
mg5_aMC> install pythia8
and I get the same result.
The problem is not solved.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

Then I would advise to install (manually) lhapdf6.2
MadGraph is compatible with that version of lhapdf but that version does not require boost.

Cheers,

Olivier

> On 17 Apr 2019, at 21:16, Marco Merchand <email address hidden> wrote:
>
> Question #680310 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/680310
>
> Status: Answered => Open
>
> Marco Merchand is still having a problem:
> Apparently is not trivial to uninstall gcc on a mac.
> So I tried
> $brew unlink gcc
> Unlinking /usr/local/Cellar/gcc/8.2.0... 0 symlinks removed
>
> then I hit
> mg5_aMC> install pythia8
> and I get the same result.
> The problem is not solved.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Marco Merchand (mamerchandmedi) said :
#4

Now I am getting the following message when hitting ./configure on the manual installation

"checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for sw_vers... sw_vers
configure: MACOSX_DEPLOYMENT_TARGET = 10.14
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/MarcoAntonio/downloads/LHAPDF-6.2.1':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details"

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

That sounds ... bad.

Your installation of gcc is probably partially present,

normally you should have the following one:
$ c++ --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Cheers,

Olivier

> On 17 Apr 2019, at 21:57, Marco Merchand <email address hidden> wrote:
>
> Question #680310 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/680310
>
> Status: Answered => Open
>
> Marco Merchand is still having a problem:
> Now I am getting the following message when hitting ./configure on the
> manual installation
>
>
> "checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... config/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether make supports nested variables... (cached) yes
> checking for sw_vers... sw_vers
> configure: MACOSX_DEPLOYMENT_TARGET = 10.14
> checking for g++... g++
> checking whether the C++ compiler works... yes
> checking for C++ compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... configure: error: in `/Users/MarcoAntonio/downloads/LHAPDF-6.2.1':
> configure: error: cannot run C++ compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details"
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Marco Merchand (mamerchandmedi) said :
#6

It looks similar to what I have:

"
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin"

is it because i don't have it installed in the Xcode apps?

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.