LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2007, 12:12 PM   #1
methodtwo
Member
 
Registered: May 2007
Posts: 146

Rep: Reputation: 18
gentoo newbie/x won't build


hi yall.Today i tried installing gentoo from the gentoo install-x86-minimal-2006.1(if that's not the exact title of the disk then i hope you get the jist).Err the kernel and everything went fine...but when i did #emerge xorg-x11... the build failed with a complaint about cairo needing the X USE flag set.So i of course did #USE="X" emerge cairo.Now cairo is a GTK lib i guess....so then i did #emerge xorg-x11 ....again but no more packages seemed to be emerged and i remember that there was still some to come.It just said it was emerging xorg-x11 and then 2 seconds later it was finished.It didn't go about installing the packages as it had before.So i did #emerge -C xorg-x11....and that
was over in 2 seconds.The only work around i can think of is to re-install everything with a different profile or just leave gtk out and go for KDE.does anybody know what happened and what i could do to get X working and salvage my current build.Sorry about not having code blocks but i don't know how to do 'em.Thankx in advance!
 
Old 11-22-2007, 12:04 AM   #2
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Rep: Reputation: 15
I believe this is your problem. Xorg got modularized so xorg-x11 is no longer the correct package (it may be a virtural one, but don't quote me on that)

Try installing 'xorg-server'
'emerge xorg-server'

but before you do that, instead of using USE flag, make it a perminate setting
edit '/etc/make.conf'

add USE="X" there, see below for my make.conf

try that

although it should install everything u need if u emerge cairo, or gnome or anything else..


ZyMOS






/ for code blocks click the # button above /





Mine is as follows (dont copy it exactly , it wont likly work for u)
Code:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example


CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

AUTOCLEAN="yes"
MAKEOPTS="-j2"
PORTAGE_NICENESS=3 

USE="mmx mmx2 sse sse2 scanner usb dvd acpi -apm" #hardware
USE="$USE opengl gtk imap xml bzip2 zlib java X alsa vim-with-x vim-syntax spell tk" #basic
USE="$USE gif jpeg png tiff svg a52 aac exif mp3 ogg vorbis theora xpm wmf win32codecs x264 flac postscript" #Media
USE="$USE -ipv6 -lirc -samba -gpm -eds -kde -emacs -xemacs -xdm -gdm -osd -xinerama -cups" #love me not

VIDEO_CARDS="nvidia r128 vesa vga" #Video

SANE_BACKENDS="hp" #scanner

Last edited by zymos; 11-22-2007 at 12:06 AM. Reason: i did have x in the use flag
 
Old 11-22-2007, 05:57 AM   #3
methodtwo
Member
 
Registered: May 2007
Posts: 146

Original Poster
Rep: Reputation: 18
why the USE="$USE....." as opposed to just USE="...." in /etc/make.conf.i guess it just uses all the USE variables already in the environment before your personal settings.Am i right.thanks for your eloquent reply as well.I think that will help.But does #emerge xorg-server install everything i need to install kde/xfce/gnome.If i have to emerge extra packages how will i know which ones i need?.Thankx in advance

Last edited by methodtwo; 11-22-2007 at 06:03 AM.
 
Old 11-22-2007, 01:11 PM   #4
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Rep: Reputation: 15
Im not sure exactly what u mean buy the USE var comment... USE is a single varable
The way i do it is the same as if i did it
Use="...........long list.................."

it just helps me keep organzied,

so both ways are the same...


Next question,
No xorg-server will not install everything

from '/var/lib/portage/world' I can show you everything i have installed, see bottom of message

I belive if you 'emerge gnome' it will install everything you need

Ive been looking for a good tutoral for gentoo-xorg but none installed xorg the way i did. Dont know why...

http://gentoo-wiki.com/Main_Page is a (generaly) great resource

try http://gentoo-wiki.com/HOWTO_Modular_Xorg
or http://www.gentoo.org/proj/en/deskto...ar-x-howto.xml

I am a fairly advanced gentoo user so, my way no be the best method for beginers, and its been a while since i install gentoo from scratch

For new users i would try the howto's above.

if it doesn't quite work here are some extra (more advanced) steps, try to debug the howtos above before tring the stuff below.

*add USE flag 'gnome' to make.conf (if you want gnome)
*install my 'x11' (except drivers that are not yours), and 'media-fonts' stuff
*install you fav window manager
*run 'X -configure', this configures pretty well
*edit '/etc/X11/xorg.conf' to match any wrong stuff, i attached my xorg.conf (dont copy exactly)
*goto ur users home
*edit .xinitrc
*add something similar to (openbox is my window manager, make yours gnome or what ever)
Code:
xterm&
exec openbox
exit
*execute 'startx' as the user (not root)


If you have problems (you likely will have some small ones, please post the errors as bet you can. And please use multiple lines, its easier to read.


good luck
ZyMOS
http://www.happytrees.org

/var/lib/portage/world
Code:
app-admin/conky
app-admin/sudo
app-admin/syslog-ng
app-admin/tmpwatch
app-arch/rar
app-cdr/bashburn
app-cdr/xcdroast
app-dicts/myspell-en
app-editors/gvim
app-editors/vim
app-editors/vim-core
app-misc/symlinks
app-office/abiword
app-office/abiword-plugins
app-office/openoffice-bin
app-portage/esearch
app-portage/genlop
app-portage/gentoolkit
app-shells/bash-completion
app-shells/bash-completion-config
app-shells/gentoo-bashcomp
app-shells/sash
app-text/aspell
app-text/dos2unix
app-text/evince
app-text/htmltidy
app-text/hunspell
app-text/poppler-bindings
app-text/unix2dos
app-text/xpdf
app-vim/colorschemes
app-vim/extra-syntax
app-vim/fluxbox-syntax
app-vim/perl-support
app-vim/vim-spell-en
dev-java/ant-core
dev-java/java-config
dev-java/sun-jdk
dev-java/sun-jdk:1.5
dev-lang/swig
dev-libs/atk
dev-libs/fribidi
dev-libs/glib
dev-libs/lzo
dev-perl/IO-Zlib
dev-perl/perl-tk
dev-python/pygobject
dev-python/pygtk
dev-python/wxpython
dev-tcltk/expect
games-puzzle/lmarbles
games-roguelike/angband
games-roguelike/falconseye
games-roguelike/nethack
games-roguelike/noegnud-nethack
games-roguelike/slashem
gnome-base/libbonoboui
gnome-extra/libgsf
media-fonts/corefonts
media-fonts/freefonts
media-fonts/sharefonts
media-fonts/terminus-font
media-fonts/ttf-bitstream-vera
media-fonts/unifont
media-fonts/urw-fonts
media-fonts/urwvn-fonts
media-gfx/autotrace
media-gfx/feh
media-gfx/gimp
media-gfx/gqview
media-gfx/imagemagick
media-gfx/inkscape
media-gfx/nvidia-cg-toolkit
media-gfx/potrace
media-gfx/tuxpaint
media-gfx/tuxpaint-stamps
media-gfx/xv
media-libs/a52dec
media-libs/faac
media-libs/faad2
media-libs/gd
media-libs/libao
media-libs/libcddb
media-libs/libdts
media-libs/libdvdcss
media-libs/libdvdnav
media-libs/libdvdread
media-libs/libexif
media-libs/libfame
media-libs/libflash
media-libs/libmad
media-libs/libmikmod
media-libs/libmodplug
media-libs/libmpcdec
media-libs/libpng
media-libs/libquicktime
media-libs/libsdl
media-libs/libtheora
media-libs/sdl-sound
media-libs/smjpeg
media-libs/smpeg
media-libs/speex
media-libs/x264-svn
media-libs/xvid
media-plugins/alsa-plugins
media-sound/alsa-tools
media-sound/alsa-utils
media-sound/alsamixergui
media-sound/aumix
media-sound/lame
media-sound/mikmod
media-sound/toolame
media-sound/vorbis-tools
media-video/lsdvd
media-video/nvidia-settings
media-video/ogle
media-video/ogle-gui
media-video/realplayer
media-video/vlc
net-analyzer/netcat
net-analyzer/tcptraceroute
net-analyzer/traceroute
net-dns/bind-tools
net-ftp/ftp
net-ftp/gftp
net-ftp/lftp
net-ftp/ncftp
net-im/pidgin
net-libs/libwww
net-misc/curl
net-misc/dhcp
net-misc/openssh
net-misc/telnet-bsd
net-p2p/transmission
net-print/hplip
net-www/netscape-flash
sci-mathematics/scilab
sci-misc/boinc
sys-apps/baselayout
sys-apps/less
sys-apps/man
sys-apps/module-init-tools
sys-apps/pciutils
sys-apps/slocate
sys-apps/sysvinit
sys-apps/usbutils
sys-boot/grub
sys-devel/prelink
sys-fs/ntfs3g
sys-fs/reiserfsprogs
sys-fs/udev
sys-kernel/gentoo-sources
sys-libs/glibc
sys-libs/gpm
sys-libs/libcap
sys-power/acpid
sys-process/vixie-cron
virtual/xft
www-client/lynx
www-client/mozilla-firefox
www-client/opera
x11-apps/mesa-progs
x11-apps/xclock
x11-apps/xinit
x11-apps/xrandr
x11-apps/xset
x11-apps/xsm
x11-base/xorg-server
x11-drivers/nvidia-drivers
x11-drivers/xf86-input-evdev
x11-drivers/xf86-input-keyboard
x11-drivers/xf86-input-mouse
x11-drivers/xf86-video-ati
x11-drivers/xf86-video-vesa
x11-drivers/xf86-video-vga
x11-libs/cairo
x11-libs/gtk+
x11-libs/libXaw
x11-libs/libXxf86dga
x11-libs/pango
x11-misc/fbpanel
x11-misc/fspanel
x11-misc/obconf
x11-misc/shared-mime-info
x11-misc/wmctrl
x11-misc/xfe
x11-terms/xterm
x11-themes/commonbox-styles
x11-themes/gentoo-artwork
x11-wm/fluxbox
x11-wm/openbox

xorg.conf
Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/share/X11/rgb"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/CID/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "glx"
	Load  "extmod" #miscellaneous extensions module
	Load  "xtrap"
	Load  "record"
	Load  "dbe" # Double buffer extension
#	Load  "dri" To enable 3D acceleration, the GLX module needs to be activated and both the DRI and GLcore modules must be deactivated.
	Load  "freetype"
	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
	Identifier   "Monitor0"
            VendorName  "HP"
	    ModelName   "A4033A"
	    HorizSync    30.0 - 77.0
	    VertRefresh  50.0 - 110.0
	Option      "DPMS"
 Modeline "1280x1024"  120.74  1280 1320 1384 1600  1024 1026 1029 
 1078
 Modeline "800x600"   46.74  800 824 880 992  600 600 602 628

# Modeline "1024x768" 145.44  1024 1096 1272 1608   768  768  772  822 
#	Modeline "1280x1024" 120.74 1280 1320 1384 1600 1024 1026 1029 1078  # 121 MHz, 75.5 kHz, 70.0 Hz
#	Modeline "800x600" 46.74   800  824  880  992   600  600  602  628
	
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "nvidia"
	VendorName  "nVidia Corporation"
	BoardName   "NV20 [GeForce3 Ti 200]"
	BusID       "PCI:1:0:0"
	Option     "NoLogo" "true"
EndSection


Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth  24
	SubSection "Display"
	        Viewport   0 0
	        Depth     24
	    #    Modes "1280x1024" "1024x768" "800x600"
	    	Modes "1280x1024" "800x600"
	EndSubSection
EndSection

Last edited by zymos; 11-22-2007 at 01:22 PM. Reason: forgot a step
 
Old 11-22-2007, 01:21 PM   #5
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Rep: Reputation: 15
http://gentoo-portage.com/ is also a good resource for info on specific packages, USE flags, prerequisits, etc

See: http://gentoo-portage.com/gnome-base/gnome
Depedences: http://gentoo-portage.com/gnome-base/gnome/Dep#ptabs
 
Old 11-22-2007, 01:25 PM   #6
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Rep: Reputation: 15
One more neglected ideam

befor anything run

emerge --sync
emerge portage
emerge -u world
 
Old 11-24-2007, 11:23 AM   #7
methodtwo
Member
 
Registered: May 2007
Posts: 146

Original Poster
Rep: Reputation: 18
problem solved

hi zymos...Thankyou so much for all your help.The prolem is
fixed now.I re-installed everything with X, vga, and vesa
in my USE variables in /etc/make.conf.X didn't build at first

but i changed "nvidia" to "nv" in VIDEO_CARDS(in /etc/make.conf).Then i just installed xorg-server and everything is now fine.So thankx again.At the nmoment i only
have xfce4 installed but i'm going to install KDE.If the KDE
builds fails it won't mess up my xfce4 installation will it?

please could you check this thread in future, in case i have any KDE problems etc...
 
Old 11-24-2007, 04:16 PM   #8
zymos
Member
 
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Rep: Reputation: 15
Im glad everything worked out.

nv is the 'free/open source' driver, nvidia is the propriatary one. If you want to you can install that by x11-drivers/nvidia-drivers

be sure that /usr/src/linux points to the kernel you are using and every time you compile a new kernel, you need to install x11-drivers/nvidia-drivers again

But both nv and nvidia drivers work well

I belive installing kde should not affect xfce, as long as u are using startx and .xinitrc. But i dont use KDE so im not an expert. I doubt there will be a prob, but if there is reinstalling xfce should fix it, i think.....


If you want to have x start up automaticly, but still have non-graphical login, here is a trick i learned. (it will also auto logout when x is closed) It requiers dev-tcltk/expect

put this in your ~/.bashrc

Code:
###################################
# Magical Auto Start-X on login & 
# Auto logout on X-Closing 
#   (requires expect)

case `tty` in 
    /dev/tty[1])
        echo -n "Start X [Yn]? "
        expect \
	    -c 'stty raw' \
	    -c 'set timeout 2' \
	    -c 'expect -nocase n {exit 1} -re . {exit 0}'
        if [ $? = 0 ] ; then
	    startx
            echo -n "Log out [Yn]? "
            expect \
	        -c 'stty raw' \
	        -c 'set timeout 5' \
	        -c 'expect -nocase n {exit 1} -re . {exit 0}'
	    if [ $? = 0 ] ; then
		logout
	    fi
        fi
	echo
    ;;
esac
good luck again

if you have time you should put you sets for installing X at http://howto.wikia.com or atleast put them here so others can find it



happy xmas and such
ZyMOS

Ill kept up with this post as long as needed
 
  


Reply

Tags
build, gentoo



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
newbie Q: ubuntu build-essentila argv problem jabbertrex Linux - Software 1 04-13-2007 03:02 PM
Kernel 2.6.20.3 no option for agpgart build for Gentoo. davimint Linux - Hardware 0 03-20-2007 06:28 PM
newbie who wants to build an audiorecording comp freakrush LinuxQuestions.org Member Intro 10 12-03-2006 09:36 AM
problem with amd64 build of gentoo citrus Linux - General 2 01-17-2005 08:47 AM
Build Error During Gentoo Bootstrap jrtayloriv Linux - Newbie 2 12-31-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration