You are not logged in.

#1 2007-06-25 14:10:04

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Permissions issue with Aptana [SOLVED]

Hi all,
yesterday night I have installed Aptana through AUR. The installation went fine, but I couldn't start it, since it complained "java" was not in my $PATH, so I did, as root,

ln -s /opt/java/jre/bin/java /usr/bin/java

And Aptana started, at least the splash screen, then I got this error:

An error has occurred. See the log file
/home/mmanu/.aptana/workspace/.metadata/.log.

I went to check the log, and here is what it says:

<snip>
java.lang.UnsatisfiedLinkError: /home/mmanu/.eclipse/com.aptana.ide.rcp.product_0.2.8.15171/configuration/org.eclipse.osgi/bundles/33/1/.cp/libswt-pi-gtk-3236.so: /home/mmanu/.eclipse/com.aptana.ide.rcp.product_0.2.8.15171/configuration/org.eclipse.osgi/bundles/33/1/.cp/libswt-pi-gtk-3236.so: failed to map segment from shared object: Operation not permitted
</snip>

Obviously this is the only thing that seems relevant to me since it's the only error message, other entries are like:

<snip>
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1660) 
</snip>

I have checked the file in question and it seems fine:

ls -la .eclipse/com.aptana.ide.rcp.product_0.2.8.15171/configuration/org.eclipse.osgi/bundles/33/1/.cp/libswt-pi-gtk-3236.so 
-rwxrwxrwx 1 mmanu users 309652 2007-06-25 02:51 .eclipse/com.aptana.ide.rcp.product_0.2.8.15171/configuration/org.eclipse.osgi/bundles/33/1/.cp/libswt-pi-gtk-3236.so

I have tried to start Aptana as root and it starts just fine, so my guess, and I'm quite sure is that there is some permission issue, but I have no clue about where to fix it.

Any help is greatly appreciated,
thanks for your time smile

Last edited by finferflu (2007-06-25 15:40:08)


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#2 2007-06-25 14:42:37

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: Permissions issue with Aptana [SOLVED]

Hi.

Instead of symlinking, have you tried in a term to do:

source /etc/profile.d/jre.sh
aptana

This script setup all the environment variables needed by java.

EDIT:
Also, have you installed aptana with pacman-3.0.5-1, if yes update pacman and reinstall aptana.

Last edited by slubman (2007-06-25 14:45:24)

Offline

#3 2007-06-25 14:47:58

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Permissions issue with Aptana [SOLVED]

Thanks for your help.
I have tried to run that command both as normal user and as root, but I keep getting the same error. I also tried to remove the symlink and running the command again, and I got the same error again...

Edit:

$ pacman -Q pacman
pacman 3.0.5-2

Last edited by finferflu (2007-06-25 14:49:32)


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#4 2007-06-25 15:33:09

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Permissions issue with Aptana [SOLVED]

Ok I solved the problem for pure coincidence. I was trying to run ./configure to compile something and I had the following error:

bash: ./configure: /bin/sh: bad interpreter: Permission denied

So I went around searching and found this page. It turns out that since I have my /home mounted on a different partition, I didn't set the option "exec" in /etc/fstab, and the "defaults" option doesn't give exec rights on it. I did that and now everything works.

I've learnt something new, thanks Arch, and thanks for your help anyways slubman smile

Last edited by finferflu (2007-06-25 15:33:51)


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

Board footer

Powered by FluxBB