Message: Re: Cannot find headers Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Cannot find headers 

Forum: Installation and Configuration
Re: Question Cannot find headers (Neoh)
Re: Question Re: Cannot find headers (Ben Morgan)
Re: None Re: Cannot find headers (Neoh)
Date: 10 May, 2010
From: Ben Morgan <Ben Morgan>

Hi Neoh,

Thanks for the additional information.

On Mon, 10 May 2010 08:31:40 GMT, Neoh wrote:
> Our intention was to install geant4 in /mnt/data1/application/geant4/,
> and have our working directory in /mnt/data1/application/geant4/g4work.

Do you mean have a global working directory for all users? I don't think that will work, especially if users are compiling the same application - working directories need to be on a per user basis. However, I don't think this is the direct cause of your issues.

On Mon, 10 May 2010 08:31:40 GMT, Neoh wrote:
> As another note, we installed the geant4 as normal users, however when
> compiling it gave the error
>  mkdir: cannot create directory `/Linux-g++/BT': Permission denied
>  make: *** [/Linux-g++/BT/exe/BT.d] Error 1
> This persists even after changing permission for the g4work directory.
> When compiling as root, only the output I post in the first message
> appeared.

That looks like it thinks that the / directory is G4WORKDIR - which would explain the permission problems. The other oddity is that the problem of the dependency builder not being able to find the headers only affects the target source file of your application,, not the source files in the src subdirectory.

I can't tell whether this is a permissions or environment problem. I'd suggest that in the makefile for your application, you add the line:

  • G4WORKDIR=$(shell echo `pwd`/workdir)

as the very first line of the makefile. This will use a local directory for the work directory, and should help with determining whether the problem is permission or environment based.



Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Cannot find headers   (Neoh - 25 May, 2010)
(_ None: Re: Cannot find headers   (Ben Morgan - 26 May, 2010)
(_ None: Re: Cannot find headers   (Neoh - 31 May, 2010)
(_ Note: Re: Cannot find headers   (Ben Morgan - 01 Jun, 2010)
 Add Message Add Message
to: "Re: Cannot find headers"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]