Difference between pages "Installing Java" and "Make.conf"

From Funtoo
(Difference between pages)
Jump to: navigation, search
 
(Moved the old make.conf page to the System category. Will begin work on this soon.)
 
Line 1: Line 1:
== What is Java? What purpose does it serve? ==
+
Make.conf is the Portage's main configuration file, because it contains many variables that define how a package will installed in a Gentoo's/Funtoo's system.
 +
An example of a make.conf :
  
== Installing java ==
+
<source lang=bash>
====Editing your make.conf====
+
CFLAGS="-O2 -pipe -march=native"
To tell portage that we would like it to pull java in the next time it is updated, we need to do the following:
+
CHOST="x86_64-pc-linux-gnu"
<console>
+
MAKEOPTS="--quiet -j3"
##r## # ##b##nano /etc/portage/make.conf
+
FEATURES="parallel-fetch"
</console>
+
LINGUAS="en es"
Running that command should present you with a file containing something similar to this:
+
[[File:Make conf example.png|thumbnail|left|An example make.conf]]
+
  
In the file, if it does not exist, create a line like the following:
+
BAD=" -hal -oss -qt3"
<console>
+
BROWSER="firefox xulrunner"
##b##USE="java"
+
CODECS="a52 aalib acc acl ffmpeg gsm lame matroska mjpeg mp3 mp4 ogg openal stream x264 xvid v4l  v4l2 win32codecs xine"
</console>
+
COM="bluetooth irc msn usb"
Press Ctrl+X , then y, then enter to write the changes to the file.
+
DESKTOP="iconv java kde libnotify zeroconf"
 +
FILESYS="7Zip bzip2 fat lzma lzo ntfs pdf rar zip zlib"
 +
GRAPHICS="jpeg gif png svg tiff"
 +
LANG="python"
 +
MEDIA="alsa css dri dvb dvd dvdr dvi fame mmx mng pulseaudio sdl sox"
 +
PRINT="cups foomatic-db freetype xml"
 +
SYSTEM="acl acpi bash-completion consolekit cjk css cxx dbus extras gcj gnutls kerberos mysql ncurses nptl portage sql udev unicode xcb webkit"
 +
XSYS="additions cairo embedded multilib opengl qt3support qt4 toolbar X xorg"
 +
USE="${BAD} ${BROWSER} ${CODECS} ${COM} ${DESKTOP} ${FILESYS} ${GRAPHICS} ${LANG} ${MEDIA} ${PRINT} ${SYSTEM} ${XSYS}"
  
==== Emerging java ====
+
INPUT_DEVICES="evdev mouse keyboard"
To install java, run the following command:
+
VIDEO_CARDS="nvidia"
<console>
+
##r## # ##b##emerge --ask --update --newuse --deep @world
+
  
##g##These are the packages that would be merged, in order:
+
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
  
Calculating dependencies... done!
+
ACCEPT_LICENSE="PUEL sun-jdk-1.1 dlj-1.1"
[ebuild  N    ] dev-java/java-config-wrapper-0.16  8 kB
+
</source>
[ebuild  N    ] sys-apps/baselayout-java-0.1.0  71 kB
+
[ebuild  N    ] dev-java/java-config-2.2.0-r1000:2  PYTHON_ABIS="2.7 3.3 -2.6 -3.1 -3.2 (-3.4)" 51 kB
+
[ebuild  N    ] app-admin/eselect-java-0.1.0  71 kB
+
[ebuild  N    ] dev-java/icedtea-bin-7.2.3.9:7  USE="X alsa cups -cjk -doc -examples -nsplugin -source" 47,781 kB
+
[ebuild  N    ] virtual/jdk-1.7.0:1.7  0 kB
+
[ebuild  N    ] virtual/jre-1.7.0:1.7  0 kB
+
Would you like to merge these packages? [Yes/No] ##b##yes
+
</console>
+
  
== Testing to see if it emerged ==
 
To check that java installed on your system, run the following command:
 
<console>
 
##b##java -version
 
</console>
 
If you get something like this, you are ready to use java!:
 
<console>
 
java version "1.7.0_21"OpenJDK Runtime Environment (IcedTea 2.3.9) (Gentoo build 1.7.0_21-b02)OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
 
</console>
 
 
[[Category:System]]
 
[[Category:System]]

Revision as of 02:20, 27 October 2013

Make.conf is the Portage's main configuration file, because it contains many variables that define how a package will installed in a Gentoo's/Funtoo's system. An example of a make.conf :

CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="--quiet -j3" 
FEATURES="parallel-fetch"
LINGUAS="en es"
 
BAD=" -hal -oss -qt3"
BROWSER="firefox xulrunner"
CODECS="a52 aalib acc acl ffmpeg gsm lame matroska mjpeg mp3 mp4 ogg openal stream x264 xvid v4l   v4l2 win32codecs xine"
COM="bluetooth irc msn usb"
DESKTOP="iconv java kde libnotify zeroconf"
FILESYS="7Zip bzip2 fat lzma lzo ntfs pdf rar zip zlib"
GRAPHICS="jpeg gif png svg tiff"
LANG="python"
MEDIA="alsa css dri dvb dvd dvdr dvi fame mmx mng pulseaudio sdl sox"
PRINT="cups foomatic-db freetype xml"
SYSTEM="acl acpi bash-completion consolekit cjk css cxx dbus extras gcj gnutls kerberos mysql ncurses nptl portage sql udev unicode xcb webkit" 
XSYS="additions cairo embedded multilib opengl qt3support qt4 toolbar X xorg"
USE="${BAD} ${BROWSER} ${CODECS} ${COM} ${DESKTOP} ${FILESYS} ${GRAPHICS} ${LANG} ${MEDIA} ${PRINT} ${SYSTEM} ${XSYS}"
 
INPUT_DEVICES="evdev mouse keyboard"
VIDEO_CARDS="nvidia"
 
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
 
ACCEPT_LICENSE="PUEL sun-jdk-1.1 dlj-1.1"