# Unable to build a executable

**URL:** <https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522>\
**Category:** Flair\
**Created:** [14 April 2023 17:56 UTC](https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522 "2023-04-14T17:56:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![parthasarathih](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/p/aeb1de/32.png) [@parthasarathih](https://fluka-forum.web.cern.ch/u/parthasarathih)\
**Post date:** [14 April 2023 17:56 UTC](https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522/1 "2023-04-14T17:56:03Z")

</div>

Hi everyone, I have encountered a problem recently i.e. I am unable to build a executable.

 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/9/94753d443f99e7c8c3c29f51944b9a46b882c0ba.png)  
![image|690x75](upload://equvA105hTVnCx1i6KWVRYZjeht  
 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/7/78dd48cbeca20724cc8addc126038168ccbbc370.png)  
.png)  
Moreover it shows me “Permission denied”.The way I overcome it is by running “sudo su” then “flair”.Is this the reason i am unable to build the executable.  
 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/a/a283fbbf30ed0ec5f257401aa6d111c99c3d0f8f.png)  
Kindly do the needful at the earliest.

---

<div class="post-metadata">

**Author:** ![parthasarathih](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/p/aeb1de/32.png) [@parthasarathih](https://fluka-forum.web.cern.ch/u/parthasarathih)\
**Post date:** [14 April 2023 17:58 UTC](https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522/2 "2023-04-14T17:58:44Z")

</div>

![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/d/dd8c62f28cbc8a38eccd1bdce2d56abe1fdfa968.png)  
these are the files that i have added.

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [14 April 2023 21:09 UTC](https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522/3 "2023-04-14T21:09:24Z")

</div>

The needful appears to be on your side: the flair _Permission denied_ issue was just discussed [today](https://fluka-forum.web.cern.ch/t/problem-in-opening-flair-using-mobaxterm/4512/14), while the compilation error is clearly displayed in red as _directory is not found or not set_ (set the Fluka Directory in the Flair Config panel).

---

<div class="post-metadata">

**Author:** ![parthasarathih](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/p/aeb1de/32.png) [@parthasarathih](https://fluka-forum.web.cern.ch/u/parthasarathih)\
**Post date:** [15 April 2023 17:47 UTC](https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522/4 "2023-04-15T17:47:31Z")

</div>

Can you please tell me how to set the Fluka Directory in the Flair Config panel?

---

<div class="post-metadata">

**Author:** ![parthasarathih](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/p/aeb1de/32.png) [@parthasarathih](https://fluka-forum.web.cern.ch/u/parthasarathih)\
**Post date:** [15 April 2023 18:43 UTC](https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522/5 "2023-04-15T18:43:44Z")

</div>

![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/8/89c33d4cc4c8dd095603d3eaefac3f36a5aee5a3.png)  
I followed up that discussion and the error message has changed and i have also set the preference like this.  
 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/e/ee91bc248de82e563504f6d16db1fed14972f671.png)  
However when i set the preference ,it shows me this warning  
 ![image](https://fluka-forum.web.cern.ch/uploads/default/original/2X/4/4622a119113c3d776abebf7130c36a38328da8c4.png)

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [15 April 2023 20:13 UTC](https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522/6 "2023-04-15T20:13:30Z")

</div>

Please set the correct FLUKA directory in Preferences, which is not _/usr/local/flair_ but _/usr/local/fluka_.  
Moreover, the user routine name should not contain any blank nor parenthesis (rename _frghns (1).f_ to _frghns.f_ or _whateverfrghns.f_).

---

<div class="post-metadata">

**Author:** ![rversaci](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@rversaci](https://fluka-forum.web.cern.ch/u/rversaci)\
**Post date:** [5 May 2023 07:01 UTC](https://fluka-forum.web.cern.ch/t/unable-to-build-a-executable/4522/7 "2023-05-05T07:01:12Z")

</div>

Closed on 5 May 2023 07:01 UTC


