LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-01-2003, 12:29 PM   #1
UberNoob
LQ Newbie
 
Registered: Dec 2003
Location: Germany
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
Angry Can't run programs (eclipse)


Greetings oh enlightened ones,

I'm running Suse 9.0 and I recently downloaded eclipse (a Java IDE). Eclipse doesn't come in a RPM, instead it simply has to be unpacked somewhere. I unpacked it into "/opt/eclipse" and tried to run the executable "eclipse".
But when clicking on the executable from within Conqueror, it tells me it can't find the program "eclipse".
And when I try to run it from the shell:
UberNoob@linux:/opt/eclipse>eclipse
bash: /home/UberNoob/bin/eclipse: No such file or directory

Why doesn't linux look in the working directory? Can it only run executables located in the "bin" directories?

Well, since I'm a smart guy, I linked the eclipse executable into /home/UberNoob/bin
But then eclipse tells me that it can't find the shared library "libXm.so", which is also located in the eclipse directory, with the omnious message "file too short".

Do I have to move everything into the bin directory to make this work? Why are Conqueror and the Shell so immensely mentally-challenged as to be unable to figure out that the path to the program I'm trying to run is in the very same directory I'm in? And especially uber-stupid Conqueror can't find the program "eclipse" even though I`m directly clicking on it... what is going on here?

I have executable permissions set, buy the way.

This is starting to frustrate me very, very badly.

Go to heaven. Help a Linux-Noob not return to Windows.
 
Old 12-01-2003, 01:26 PM   #2
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi!
Quote:
UberNoob@linux:/opt/eclipse>eclipse
bash: /home/UberNoob/bin/eclipse: No such file or directory

Why doesn't linux look in the working directory? Can it only run executables located in the "bin" directories?
No. You can run executables located either somewhere in the PATH environment variable or typing the complete route; so you should try to type in console
Code:
/opt/eclipse/eclipse
or, if your PWD variable is "/opt/eclipse/" (i.e. you are in this directory), just type
Code:
./eclipse
Check it, and tell what happens.
Regards
 
Old 12-01-2003, 01:34 PM   #3
UberNoob
LQ Newbie
 
Registered: Dec 2003
Location: Germany
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your reply Yoyimbo.

And thanks for the confirmation that Linux needs the full path or the path being set in PATH.

I tried running it with ./eclipse, but got a plenty heap of error messages. I found the problem anyways and finally got it working.

The problem is that Konqueror has a bug and doesn't unzip correctly, so it screwed up a few files. I unzipped eclipse manually from the console, and now it works.

Thanks anyhow.
 
Old 12-01-2003, 01:52 PM   #4
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Quote:
And thanks for the confirmation that Linux needs the full path or the path being set in PATH.
Well, I'm not fully sure, but I think this is for security reasons.

Anyway, I'm glad to hear that worked!
(and I hope you didn't get too frustrated with linux; there are bugs everywhere)

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run Eclipse? max2004 Fedora 10 02-22-2006 02:37 AM
JVM error when I run eclipse tareqth Linux - Software 4 07-22-2005 02:53 AM
How to run Eclipse on linux Fedora I ? ? caovankhanhvn Programming 3 06-25-2004 03:31 AM
can't run eclipse tazaran Linux - Software 12 06-11-2004 03:46 PM
Making eclipse run without terminal true_atlantis Linux - Newbie 4 10-29-2003 11:56 PM


All times are GMT -5. The time now is 10:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration