Build & start hybris 5.1.1 on Linux or Mac OS X

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

Answers (5)

Joe Choosakul
Joe Choosakul

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

Benoit Vanalderweireldt
Benoit Vanalderweireldt

Reputation: 2989

  1. First change the ownership of all files of your Hybris installation, to your current user.
hybris : ~ $ whoami 
hybris
hybris : ~ chown -R hybris: ./
hybris : ~ chmod -R 755 ./
  1. Then run the setantenv command

hybris : ~/hybris/bin/platform $ . setantenv.sh

Upvotes: 0

Sahbi
Sahbi

Reputation: 51

You should be using . ./setenv.sh since it sets maven environment as well

Upvotes: 2

Aaron Blenkush
Aaron Blenkush

Reputation: 3059

You have you use the bash command

. ./setantenv.sh

Upvotes: 7

Jonathan Wheeler
Jonathan Wheeler

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

Related Questions