Reputation: 189
I am installing the hybris 5.1.1 complete package for the first time & according to the procedure of this web page:
https://wiki.hybris.com/display/release5/Quick+Installation
However, when I perform the step:
On Unix-related systems (such as Linux or Mac OS X), run setantenv.sh by entering ./setantenv.sh.
by...
mlittle-mbook1-2:platform mlittle$ ./setantenv.sh
I get the message...
-bash: ./setantenv.sh: Permission denied
I have also tried setting to execute permissions with chmod 755 platform
, but it did not work..
Upvotes: 0
Views: 8567
Reputation: 326
the "Permission denied" error means you do not have permission to execute the shell program.
You will need to change the file mode to allow execution.
Here's the command(The steps below assumes you are the owner of the file):
chmod 755 ./setantenv.sh
then run
. ./setantenv.sh
Upvotes: 1
Reputation: 2989
hybris : ~ $ whoami hybris hybris : ~ chown -R hybris: ./ hybris : ~ chmod -R 755 ./
hybris : ~/hybris/bin/platform $ . setantenv.sh
Upvotes: 0
Reputation: 51
You should be using . ./setenv.sh
since it sets maven environment as well
Upvotes: 2
Reputation: 2709
Use
ls -l
To see who the owner and who the group is. If you are not the owner or in the group, you may need to change your permissions to 777 or 775 respectively.
Prefacing your statement with sudo is frequently necessary to write files to folders such as /bin for the installation process.
Upvotes: 1