Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to install Spark IM in my Ubuntun VM, however I am running into all kinds of problems. The steps I have taken so far were:

  1. Download the tar.gz file from the website
  2. Unpack it
  3. cd /home/user/Downloads/Spark
  4. sudo chmod +x Spark
  5. sudo chmod +x starter
  6. cd ..
  7. sudo mv Spark/ /opt

To run, the Spark IM, I do the following commands:

  1. sudo su
  2. cd /opt
  3. sh Spark/Spark

And as a result, I get the error:

Preparing JRE ...
Spark/Spark: 150: Spark/Spark: bin/unpack200: Permission denied
Error unpacking jar files. Aborting.
You might need administrative priviledges for this operation.

Which makes no sense at all, because I am running in root mode. If I run sh Spark/starter I get the exact same mistake. If I try to run it as an executable file, I get a similar error:

bash: ./Spark/starter: Permission denied

What am I doing wrong? Why can I not install this?

share|improve this question
    
Hmm.. What's the output of ls -Al in /opt/Shark? –  Seth Jan 21 at 5:29
    
You mean la -Al /opt/Spark? Well the output ca be seen here: pastebin.kde.org/py1ldorue I wonder if it is somehow related to my versions of Java? –  Flame_Phoenix Jan 21 at 11:22

1 Answer 1

up vote 1 down vote accepted

The reason you are getting permission denied is because the files Spark and starter don't have execute permissions as seen here:

-rw-rw-rw- 1 root root 8528 Jan 20 19:38 Spark
-rw-rw-rw- 1 root root 7520 Jan 20 19:38 starter  

So you will need to run:

sudo chmod +x /opt/Spark  
sudo chmod +x /opt/starter  

I'm not sure why the execute permission was lost (since you ran chmod +x before), but I think it is because when you moved them to /opt the owner was changed from you to root.

share|improve this answer
    
Weird in deed. Thanks ! –  Flame_Phoenix Jan 22 at 10:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.