Fedora Install Gcc

Published on December 2016 | Categories: Documents | Downloads: 19 | Comments: 0 | Views: 149
of 8
Download PDF   Embed   Report

Fedora Install Gcc

Comments

Content


Install gcc & allsorts
su -
yum groupinstall "Development Tools" "Development Libraries"
Install Sun/Oracle Java JDK /JRE 6u30 on Fedora
16/15/14/13/1 !entOS 6"/6"1/6/5"#$ Red %at
&R%E'( 6"/6"1/6/5"#
1" Do)nload Sun/Oracle Java JDK or JRE R*+s
Download Sun/Oracle Java JDK or JR !rom "ere #current version is JDK $ %pdate &'(
"ttp)//www*oracle*com/tec"networ+/,ava/,avase/downloads/inde-*"tml*
,ote- Select r./"01n .ac2age &e3a/.le 4d256u305l1nu3515665r./"01n$ 4re56u305
l1nu3515665r./"01n$ 4d256u305l1nu353645r./"01n or 4re56u305l1nu353645r./"01n("
" !7ange to root user"
sudo -i
## OR ##
su -
3a" Run Sun/Oracle Java JDK 01nar8
chmod +x /path/to/file/jdk-6u30-linux-*-rpm.bin
/path/to/binary/jdk-6u30-linux-*-rpm.bin

## OR ##

sh /path/to/binary/jdk-6u30-linux-*-rpm.bin
,ote- 9se :ull :1le na/e &)1t7out aster13( 1: 8ou 7ave 0ot7 1566 and 364 vers1ons
do)nloaded"
30" Run Sun/Oracle Java JRE 01nar8
chmod +x /path/to/file/jre-6u30-linux-*-rpm.bin
/path/to/binary/jre-6u30-linux-*-rpm.bin

## OR ##

sh /path/to/binary/jre-6u30-linux-*-rpm.bin
,ote- 9se :ull :1le na/e &)1t7out aster13( 1: 8ou 7ave 0ot7 1566 and 364 vers1ons
do)nloaded"
4a" Install Sun/Oracle JDK java$ javaws$ libjavaplugin.so &:or
F1re:o3/+o;1lla( and javac )1t7 alternatives –install co//and
## java ##
alternatives --install /usr/bin/java java
/usr/java/jdk1.6.030/jre/bin/java !0000
## javaws (32-bit only) ##
alternatives --install /usr/bin/java"s java"s
/usr/java/jdk1.6.030/jre/bin/java"s !0000

## Java Browser (Mozilla) Plugin 32-bit ##
alternatives --install /usr/lib/mo#illa/plu$ins/libjavaplu$in.so
libjavaplu$in.so /usr/java/jdk1.6.030/jre/lib/i3%6/libnpjp!.so !0000

## Java Browser (Mozilla) Plugin 6-bit ##
alternatives --install /usr/lib6&/mo#illa/plu$ins/libjavaplu$in.so
libjavaplu$in.so.x%66& /usr/java/jdk1.6.030/jre/lib/amd6&/libnpjp!.so
!0000

## !nstall java" only i# you installe$ J%& (Java %evelo'(ent &it)
'a")age ##
alternatives --install /usr/bin/java' java'
/usr/java/jdk1.6.030/bin/java' !0000
alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.030/bin/jar
!0000
40" Install Sun/Oracle JRE java$ javaws and libjavaplugin.so &:or
F1re:o3/+o;1lla( )1t7 alternatives –install co//and
## java ##
alternatives --install /usr/bin/java java
/usr/java/jre1.6.030/bin/java !0000

## javaws (32-bit only) ##
alternatives --install /usr/bin/java"s java"s
/usr/java/jre1.6.030/bin/java"s !0000

## Java Browser (Mozilla) Plugin 32-bit ##
alternatives --install /usr/lib/mo#illa/plu$ins/libjavaplu$in.so
libjavaplu$in.so /usr/java/jre1.6.030/lib/i3%6/libnpjp!.so !0000

## Java Browser (Mozilla) Plugin 6-bit ##
alternatives --install /usr/lib6&/mo#illa/plu$ins/libjavaplu$in.so
libjavaplu$in.so.x%66& /usr/java/jre1.6.030/lib/amd6&/libnpjp!.so
!0000
5" !7ec2 current 4ava$ 4avac$ 4ava)s and l104ava.lug1n"so vers1ons
java -version
java version (1.6.030(
)ava*+,- ./ 0untime /nvironment *build 1.6.030-b03-
)ava 1ot.pot*+,- .erver 2, *build !0.1-b0!3 mixed mode-

java' -version
java' 1.6.030

java"s
)ava*+,- 4eb .tart 1.6.030
5...6
,ote- !7ec2 l104ava.lug1n"so )1t7 restart1ng +o;1lla F1re:o3 and )r1t1ng
about:plugins on address 0ar"
Fedora 15-
6" S)a. 0et)een O.enJDK and Sun/Oracle JDK vers1ons
alternatives --'onfi$ java # or java" or javaws or libjava'lugin*so
+here are & pro$rams which provide 7java7.

.ele'tion 8ommand
-----------------------------------------------
1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
! /usr/lib/jvm/jre-1.9.0-$'j/bin/java
* 3 /usr/java/jdk1.6.01%/jre/bin/java
+ & /usr/java/jdk1.6.030/jre/bin/java

/nter to keep the 'urrent sele'tion5+63 or type sele'tion number:
,ote- 4ava )1t7 <=> 1s currentl8 on use
*ost5Installat1on Setu.
?dd [email protected]?A%O+E env1ron/ent var1a0le to /etc/.ro:1le :1le or
B%O+E/"0as7A.ro:1le :1le
## e+'ort J,-,./OM0 J%& ##
export );2;1<,/=(/usr/java/jdk1.6.030(

## e+'ort J,-,./OM0 JR0 ##
export );2;1<,/=(/usr/java/jre1.6.030(
Install Ecl1.se SDK 3"#"1 &Ind1go( on Fedora$ !entOS$
Red %at &R%E'(
1" Install Sun/Oracle Java JDK # or Java JDK 6
.nstall Sun/Oracle Java JDK / on 0edora1 2entOS1 Red 3at #R3L(
.nstall Sun/Oracle Java JDK $ on 0edora1 2entOS1 Red 3at #R3L(
" Do)nload Ecl1.se SDK 3"#"1 &Ind1go(
Download suitable version !rom www*eclipse*org/downloads* T"is guide uses Ecl1.se
!lass1c 3"#"1 version* 4not"er popular versions are Ecl1.se IDE :or Java EE
Develo.ers1 Ecl1.se IDE :or Java Develo.ers and Ecl1.se :or *%* Develo.ers* Select
also 3501t or 64501t version depending on your system*
3" !7ange root user
su -
## OR ##
sudo -i
4" E3tract Ecl1.se .ac2age &e3a/.le to /o.t d1rector8(
## +16 - 32-bit ##
tar -xv#f e'lipse-.>[email protected]$tk.tar.$# -8 /opt

## +16.6 - 6-bit ##
tar -xv#f e'lipse-.>[email protected]$tk-x%66&.tar.$# -8 /opt
5" ?dd read .er/1ss1ons to all :1les
chmod -0 +r /opt/e'lipse
6" !reate Ecl1.se e3ecuta0le on /usr/01n .at7
touch /usr/bin/e'lipse
chmod @99 /usr/bin/e'lipse

## O'en e"li'se #ile wit2 your #avourite e$itor ##
nano -" /usr/bin/e'lipse

## Paste #ollowing "ontent to #ile ##
#34bin4s2
export /8ABC./1<,/=(/opt/e'lipse(

D/8ABC./1<,//e'lipse D*
#" !reate Cno/e des2to. launc7er
## 5reate #ollowing #ile6 wit2 our #avourite e$itor ##
/usr/share/appli'ations/e'lipse.desktop

## ,$$ #ollowing "ontent to #ile an$ save ##
5>esktop /ntry6
/n'odin$=E+F-%
Game=/'lipse
8omment=/'lipse .>? [email protected]
/xe'=e'lipse
B'on=/opt/e'lipse/i'on.xpm
+erminal=false
+ype=;ppli'ation
8ate$ories=HG<,/I;ppli'ationI>evelopmentI
.tartupGotify=true
6" Start Ecl1.se 3"#"1
Fro/ co//and l1ne use ecl1.se co//and
e'lipse
Fro/ Des2to. /enu Cno/e 3 Ecl1.se 3"#"1
Fro/ Des2to. /enu Cno/e and Ecl1.se 3"6 &%el1os(
D" Ecl1.se 3"6 screens7ots$ runn1ng &and start1ng( on Fedora 13 3501t and
!entOS 5"5 64501t
Ecl1.se load1ng
Ecl1.se 3"6 runn1ng on Fedora 13 3501t
Ecl1.se 3"6 runn1ng on !entOS 5"5 64501t
Erou0les7oot1ng
I: 8ou get so/et71ng l12e :ollo)1ng errors-
Failed to load the JNI shared library
/usr/java/jdk1..!"#1/jre/bin/../lib/i$%/client/libjv&.so
Or
/usr/java/jdk1..!"#1/jre/bin/../lib/i$%/client/libjv&.so: cannot enable e'ecutable stack
as shared object re(uires: )er&ission denied
T"en do !ollowing)
'h'on -t exe'memexe't 7/opt/e'lipse/e'lipse7
and try again*

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close