Message: Re: No such file or directory Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: No such file or directory 

Forum: Installation and Configuration
Re: Question No such file or directory (Amir Sharif)
Date: 29 Jul, 2015
From: Ben Morgan <Ben Morgan>

On Sun, 26 Jul 2015 15:25:13 GMT, Amir Sharif wrote:
> Hi. I could make and install Geant4 on my Mac.
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh
> 
> When I try to run the command through terminal it says:
> 
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 48: cd: /Users/amir/../lib: No such file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 62: cd: /Users/amir/../share/Geant4-10.1.2/data/G4NDL4.5: No such
> file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 63: cd: /Users/amir/../share/Geant4-10.1.2/data/G4EMLOW6.41: No
> such file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 64: cd:
> /Users/amir/../share/Geant4-10.1.2/data/PhotonEvaporation3.1: No such
> file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 65: cd:
> /Users/amir/../share/Geant4-10.1.2/data/RadioactiveDecay4.2: No such
> file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 66: cd: /Users/amir/../share/Geant4-10.1.2/data/G4NEUTRONXS1.4: No
> such file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 67: cd: /Users/amir/../share/Geant4-10.1.2/data/G4PII1.3: No such
> file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 68: cd: /Users/amir/../share/Geant4-10.1.2/data/RealSurface1.0: No
> such file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 69: cd: /Users/amir/../share/Geant4-10.1.2/data/G4SAIDDATA1.1: No
> such file or directory
> /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh:
> line 70: cd: /Users/amir/../share/Geant4-10.1.2/data/G4ABLA3.0: No such
> file or directory
> 
> But I can see those folders and files here. I don't know why I can get
> this error.
> 

The geant4.sh script needs to be sourced rather than run as a command. Try doing:

. /Users/amir/Documents/geant4.10.01/geant4.10.1-install/bin/geant4.sh

instead.

Cheers,

Ben.

 Add Message Add Message
to: "Re: No such file or directory"

 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 ]