# About CASToR Installation

**URL:** https://castor-project.discourse.group/t/about-castor-installation/117
**Category:** General Discussions
**Created:** [September 26, 2019, 8:36pm UTC](https://castor-project.discourse.group/t/about-castor-installation/117 "2019-09-26T20:36:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Virtuall](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@Virtuall](https://castor-project.discourse.group/u/Virtuall)
#### Post date: [September 26, 2019, 8:36pm UTC](https://castor-project.discourse.group/t/about-castor-installation/117/1 "2019-09-26T20:36:11Z")

</div>

Hi everyone,

I am installing CASToR for our PET research, but I met some problems with it. When I use Cmake to configure compilation of CASToR, the MPI cannot be built in CASToR, and cmake always gave error messages like this:

```auto

[user1@localhost castor_v2.1-build]$ make -j16
CMakeFiles/castor-datafileExplorer.dir/flags.make:10: *** missing separator. Stop.
CMakeFiles/castor-datafileConversionEx.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-datafileExplorer.dir/all] Error 2
make[1]: CMakeFiles/castor-scannerLUTExplorer.dir/flags.make:10: ****** Waiting for unfinished jobs....
missing separator. Stop.
make[1]: *** [CMakeFiles/castor-datafileConversionEx.dir/all] Error 2
make[1]: *** [CMakeFiles/castor-scannerLUTExplorer.dir/all] Error 2
CMakeFiles/castor-GATEMacToGeom.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-GATEMacToGeom.dir/all] Error 2
CMakeFiles/castor-GATERootToCastor.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-GATERootToCastor.dir/all] Error 2
CMakeFiles/castor-PetScannerLutEx.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-PetScannerLutEx.dir/all] Error 2
CMakeFiles/castor-recon.dir/flags.make:10: *** missing separator. Stop.
make[1]: *** [CMakeFiles/castor-recon.dir/all] Error 2
make: *** [all] Error 2

```

Anyone can help me? Any reply will be highly appreciated!!!

Best,

---

<div class="post-metadata">

### Author: ![sstute](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sstute](https://castor-project.discourse.group/u/sstute)
#### Post date: [September 27, 2019, 8:23am UTC](https://castor-project.discourse.group/t/about-castor-installation/117/2 "2019-09-27T08:23:30Z")

</div>

Hi,

Could you try with the standalone Makefile to see what happens ?

To do so :

- export the CASTOR\_MPI variable using “export CASTOR\_MPI=1”

- delete traces of the Cmakefile results

- run “make clean”

- run again “make”

​Tell us back what happened.

Best

Simon

---

<div class="post-metadata">

### Author: ![sstute](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sstute](https://castor-project.discourse.group/u/sstute)
#### Post date: [September 27, 2019, 3:12pm UTC](https://castor-project.discourse.group/t/about-castor-installation/117/3 "2019-09-27T15:12:09Z")

</div>

I did not realize that you may want to link with ROOT.

In this case, it is still better to use the CMake.​

Anyway, try again the CMake but just disable the MPI support (do you really need it? Will you launch castor on a cluster of servers or computers?)

Simon

---

<div class="post-metadata">

### Author: ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)
#### Post date: [September 27, 2019, 3:54pm UTC](https://castor-project.discourse.group/t/about-castor-installation/117/4 "2019-09-27T15:54:11Z")

</div>

Hi,

Using the Makefile, you must set the CASTOR\_ROOT environment variable to 1 in order to compile with ROOT.

Using Cmake, what are the variables you set to ON ? I will try to reproduce the missing separator errors you got.

Best,

Thibaut

---

<div class="post-metadata">

### Author: ![sstute](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sstute](https://castor-project.discourse.group/u/sstute)
#### Post date: [September 30, 2019, 7:31am UTC](https://castor-project.discourse.group/t/about-castor-installation/117/5 "2019-09-30T07:31:37Z")

</div>

​Hi,

I have no idea about that, I am neither used to cmake nor to root.

Also please use the mailing list as other people may help you or may find useful information.

Best

Simon
