• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to install *.sh file on Fedora 9?  RSS feed

 
Jerome Qiao
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be a stupid question but I really don't know how to install the *.sh file on my Fedora 9 operating system.

I downloaded java_ee_sdk-6-unix.sh from SUN's website and found it can not be executed on Fedora 9.

Like this(I logged in as root):
chmod a+x *.sh
sh *.sh [doesn't work]
or *.sh [doesn't work]

Should I install another version of Linux?

Thanks in advance.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about "sh java_ee_sdk-6-unix.sh" or perhaps even "./java_ee_sdk-6-unix.sh" ?
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Linux forum.
 
Paul Kinane
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Linux is modeled on Unix, but developed independently, and is free, open sourced software. Unix, in its many flavors is propriatery, although I think Sun might have open sourced their version of Unix, but I could be very wrong.
 
Hariharan Balakrishnan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once logged in as root,

./Filename.sh

or

sh filename.sh should work.

Why are you using Fedora 9 by the way? Fedora 12 has been released some time back. Its awesome and loads better.
 
Tim Holloway
Saloon Keeper
Posts: 18792
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Kinane wrote:Linux is modeled on Unix, but developed independently, and is free, open sourced software. Unix, in its many flavors is propriatery, although I think Sun might have open sourced their version of Unix, but I could be very wrong.


You've included a "Download Windows 7" linun in the Linux forum?

Sun has released an open-source version of Solaris known as OpenSolaris. It's under a slightly different license (CDDL). Since you can also download Solaris itself for free these days (they charge for the support, not the OS), you might wonder why 2 different versions. One reason is that OpenSolaris has become sort of Sun's "Fedora".

"sh *.sh" is a dangerous thing to do. It literally means, "make a list of all the files in the current directory whose names end with ".sh". For each one of them, search the PATH for an executable with that name. Execute it." What makes it especially risky is that the current directory isn't part of the PATH by default (unlike DOS/Windows). So the executable may be somewhere else entirely. And, of course, if the "x" bit isn't set, an "executable" isn't considered executable, and won't be chosen.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!