Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
111c825
Add installation steps for xerces and icu and change shebang
May 16, 2024
feb9476
Update various installation steps to increase portability
May 17, 2024
c43dcb8
Add error handling
May 17, 2024
5cec449
Fix a syntax error
May 18, 2024
b423d06
Fix enable_mac option
May 20, 2024
d05f0cd
Go to correct directory after xerces build
May 20, 2024
84335bb
Add DYLD_LIBRARY_PATH to env.sh
May 20, 2024
fda0096
Fix xerces install
May 21, 2024
71058d3
Force xerces to install library in lib, not lib64
May 21, 2024
eccc500
Build ICU using c++17
May 21, 2024
ec5eaee
Fix geant search for xerces
May 21, 2024
3f43e1b
Remove full path to cmake
May 21, 2024
f9ff5da
Fix removal of ^M from cry Makefile
May 21, 2024
e6376cb
Merge branch 'WilfS/devForMacAndXerces' of github.com:WilfS/ratpac-se…
May 21, 2024
973d17d
Update readme with new installed packages
May 21, 2024
6872854
Fix xerces library variable for ratpac install
May 21, 2024
7a483ea
Improve bash formatting
May 24, 2024
14adf08
Force libzmq to install in lib folder, not lib64
May 24, 2024
9a857c6
Fix mac option in help function
May 24, 2024
0cb9378
Fix more mac options
May 24, 2024
3dac3be
Use \r in sed of cry makefile
May 24, 2024
dee12e9
Adjust LD_LIBRARY_PATH on cry install
May 24, 2024
b26e7ba
Adjust arm64 flags
May 24, 2024
9bdffc5
Force geant4 to use lib, not lib64
May 24, 2024
540a255
Missed a broken mac flag
May 24, 2024
9fd014d
Change cd behaviour in ratpac install
May 24, 2024
fec147d
More adjustments to cd behavior
May 24, 2024
e64fec9
Edit mac install
May 24, 2024
4cd7445
Change order of install
May 24, 2024
035cc00
Fix some issues cause by install changes
May 24, 2024
b27732f
Fix some issues cause by install changes
May 24, 2024
386fcc7
Merge branch 'WilfS/devForMacAndXerces' of github.com:WilfS/ratpac-se…
May 24, 2024
08fd96b
Uncomment code
May 24, 2024
e76d4f3
Change CPPFLAGS to CXXFLAGS
May 24, 2024
bea8488
Update LD_LIBRARY_PATH in cry_install
May 28, 2024
da35087
Merge branch 'rat-pac:main' into WilfS/devForMacAndXerces
WilfS May 31, 2024
e88c204
Fix write to env.sh after ratpac_install and edit help message
May 31, 2024
94b1a98
Force nlopt to write libraries to lib and not lib64
May 31, 2024
0e69769
Fix arm64 and mac options
Jun 5, 2024
c8b185d
Fix issue on macos where install used high memory
Jul 13, 2024
09fb51d
Merge branch 'main' into WilfS/devForMacAndXerces
WilfS Jul 16, 2024
647d846
Fix bug introduced by merge with main
WilfS Jul 17, 2024
4ca6d0a
Update ROOT version for mac install
Jan 9, 2025
ff5d342
Remove ICU dependency
May 2, 2025
d742d7c
Revert geant4 version to default
May 2, 2025
48d01b1
Merge branch 'main' into WilfS/devForMacAndXerces
WilfS May 9, 2025
40a014d
Remove xerces-c from main install
May 9, 2025
e56290d
Merge branch 'WilfS/devForMacAndXerces' of github.com:WilfS/ratpac-se…
May 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ you do not wish to reinstall, though do note you will have to properly link
them in that case (ROOT / Geant-4).

- CMake v3.22.0+
- Python 3.x.x
- Xerces-C 3.2.5 (not built by default)
- Root 6.25+
- Geant-4 11.0
- CRY 1.7
Expand All @@ -41,14 +41,39 @@ Additional options are available, including passing make commands
```bash
# For linux, tensorflow can either use the cpu(default) or gpu
./setup.sh --only tensorflow --gpu
# For mac, a separate tensorflow is available
./setup.sh --only tensorflow --mac
# Pass number of processors to make, and even keep downloaded files for debugging
./setup.sh -j8 --noclean
# For complete information run
./setup.sh -h
```

### Building Xerces-C
The Xerces-C library is required by Geant4. Most machines will have Xerces-C, but not all. The library is NOT included in the default ratpac-setup build, but can be pre-built before your main installation using ratpac-setup. To build Xerces-C, use the command
```
./setup --only xerces
```
and then continue with the main installation.

### MacOS
Installation is possible on MacOS using the flag `--mac`. If using Apple
Silicon (ARM64 architecture), one will also need the flag `--arm64`. The
installation *assumes a zsh shell* for macs.

The MacOS installation is similar to the Linux installation, but uses dynamic
libraries rather than shared libraries. Some CMakeLists.txt files (including
ratpac's) are adjusted for the mac installation. Please be aware of this if
developing code and committing changes to CMakeLists.txt. Ideally, we will
remove these CMakeLists.txt edits in the future.

On Apple Silicon, the installation of ROOT can sometimes run into issues with the
error message `read jobs pipe: Resource temporarily unavailable.`. There doesn't
seem to be a consistent permanent solution to this, but if you run the
`make && make install` command again within the `root_build` directory (maybe
more than once), the build should finish. Then continue with the installation
with setup.sh, skipping cmake and root.

Mac installation tested on Apple M1 Pro with Sonoma 14.5.

## Usage
Once installation is complete there will be a new directory structure from where
`setup.sh` is run with a complete `./local` directory that contains all
Expand Down
Loading