• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How to install *.sh file on Fedora 9?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22818
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What about "sh java_ee_sdk-6-unix.sh" or perhaps even "./java_ee_sdk-6-unix.sh" ?
 
Marshal
Posts: 80128
417
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to our Linux forum.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 28420
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic