Opened 2 years ago
Last modified 2 years ago
#1542 new Bug
Delphes Installation Failed on MAC OS
Reported by: | ayaismail | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description
Dear Delphes Experts,
I am trying to install Delphes_v3.5.0 on macOS Monterey version 12.4, however I get those errors,
clang: error: no such file or directory: 'libDelphesNoFastJet.so'
make: * [libDelphesNoFastJet.so] Error 1
make: * Waiting for unfinished jobs....
clang: error: no such file or directory: 'libDelphes.so'
make: * [libDelphes.so] Error 1
Any idea on how to solve this will be much apperciated.
I have root version 6.26.04 installed.
Thanks,
Aya
Note:
See TracTickets
for help on using tickets.
The issue has been solved, (also works for mac os version 11)
Its mainly related to the platform dependices definitions in Makefile.arch which is pointing to mac version 10 and not higher ones. The file can be found at:
/path/to/delphes_directory/doc/Makefile.arch
in which the lines :
ifeq ($(PLATFORM),macosx)
MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
ifeq ($(MACOSX_DEPLOYMENT_TARGET),)
MACOSXTARGET := 10.$(MACOSX_MINOR)
else
MACOSXTARGET := $(MACOSX_DEPLOYMENT_TARGET)
endif
endif
have to be replaced by,
ifeq ($(PLATFORM),macosx)
ROOTLIBDIR := $(shell $(RC) --libdir)
MACOSX_MAJOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 1))
MACOSX_MINOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2))
ifeq ($(MACOSX_DEPLOYMENT_TARGET),)
MACOSXTARGET := $(MACOSX_MAJOR).$(MACOSX_MINOR)
else
MACOSXTARGET := $(MACOSX_DEPLOYMENT_TARGET)
endif
endif
Note: when downloading tar file for the latest Delphes version 3.5.0 from the github repo, the Makefile.arch contains the old lines for defining the platform (mac version 10), but when downloading the master code, the Makefile.arch contains the modified lines, which is installed perfectly on mac 12.