LinuxQuestions.org
Help answer threads with 0 replies.
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 12-20-2009, 05:08 PM   #1
itsbrad212
Member
 
Registered: Nov 2009
Location: Chicago
Distribution: Arch and OpenBSD
Posts: 104

Rep: Reputation: 19
xorg install help


I am currently following Beyond Linux From Scratch. (http://www.linuxfromscratch.org/blfs...e/x/x7lib.html)

When I try to install libX11-1.3, I get:
Code:
checking for X11... configure: error: Package requirements (xextproto xtrans xcb >= 1.1.92) were not met:

Requested 'xcb >= 1.1.92' but version of XCB is 1.0

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables X11_CFLAGS
and X11_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
So to fix the first problem, xextproto, I go to install it (xextproto-7.1.1) The output of each command are as follows:

./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --localstatedir=/var
Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xextproto.pc
I then run make install and get:
Code:
make[1]: Entering directory `/xc/proto/xextproto-7.1.1'
make[1]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/pkgconfig" || /bin/mkdir -p "/usr/lib/pkgconfig"
 /usr/bin/install -c -m 644 xextproto.pc '/usr/lib/pkgconfig'
test -z "/usr/include/X11/extensions" || /bin/mkdir -p "/usr/include/X11/extensions"
 /usr/bin/install -c -m 644 dpmsconst.h dpmsproto.h ge.h geproto.h lbx.h lbxproto.h mitmiscconst.h mitmiscproto.h multibufconst.h multibufproto.h secur.h securproto.h shapeconst.h shapeproto.h shm.h shmproto.h syncconst.h syncproto.h ag.h agproto.h cup.h cupproto.h dbe.h dbeproto.h EVI.h EVIproto.h xtestext1proto.h xtestext1const.h xtestconst.h xtestproto.h '/usr/include/X11/extensions'
make[1]: Leaving directory `/xc/proto/xextproto-7.1.1'
Then, when I try to install libX11-1.3, I still get:
Code:
checking for X11... configure: error: Package requirements (xextproto xtrans xcb >= 1.1.92) were not met:

Requested 'xcb >= 1.1.92' but version of XCB is 1.0

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables X11_CFLAGS
and X11_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
That message is at the end of the output

When I attempted to install libX11-1.3, I ran:

Code:
case $(basename "$PWD") in
libX11-1.1.2 )
    patch -Np1 -i ../../libX11-1.1.2-badargs-1.patch &&
    sed -i 's/_XGet/XGet/' modules/im/ximcp/imDefLkup.c
    ;;
libXfont-1.2.8 )
    patch -Np1 -i ../../libXfont-1.2.8-pcf_parser-1.patch &&
    sed -i 's/(ft_isdigit/(isdigit/' src/FreeType/fttools.c
    ;;
esac &&
./configure $XORG_CONFIG &&
make
Can you tell me what is wrong?

Last edited by itsbrad212; 12-20-2009 at 05:22 PM.
 
Old 12-20-2009, 08:47 PM   #2
iharob
LQ Newbie
 
Registered: Nov 2009
Posts: 14

Rep: Reputation: 0
Its not that bad!

I've been through it. Its actually very simple reason, you have to install xtrans package first, but not only that there is an order to install packages even, such order should be the same as the download list order, you can create a script to do it for you, but be careful packages do not need patches other wise you have to include such exceptions in the script. The script may look like this

#!/bin/bash -e

LIST=$(cat files_list)
for PACKAGE in ${LIST}; do
# untar the package
tar xvf ${PACKAGE}
# get the directory name by deleting every thing after "tar"
DIRNAME=${PACKAGE%.tar*}
# cd into package dir
cd ${DIRNAME}
# build the package
./configure $XCONFIG
make && make install
# get back to the parent dir
cd ..
# cleanup the build-dir (be careful with syntax here, you
# dont want to delete the sources !!!!!!!!!!!!!!!!!!!!!!)
rm -rf ${DIRNAME}
done;

not exactly like this of course, you have to fit it to your needs and the way you might like to write the script, this is the download list i found for Xorg-7.5, if this is not the version you are trying to build searh for the one you are actually building, you can create the files_list file by writing this in a terminal (if you can copy - paste go ahead)

cat > files_list << "EOF"
xtrans-1.2.5.tar.bz2
libX11-1.3.2.tar.bz2
libXext-1.1.1.tar.bz2
libFS-1.0.2.tar.bz2
libICE-1.0.6.tar.bz2
libSM-1.1.1.tar.bz2
libXScrnSaver-1.2.0.tar.bz2
libXt-1.0.7.tar.bz2
libXmu-1.0.5.tar.bz2
libXpm-3.5.8.tar.bz2
libXaw-1.0.7.tar.bz2
libXfixes-4.0.4.tar.bz2
libXcomposite-0.4.1.tar.bz2
libXrender-0.9.5.tar.bz2
libXcursor-1.1.10.tar.bz2
libXdamage-1.1.2.tar.bz2
libfontenc-1.0.5.tar.bz2
libXfont-1.4.1.tar.bz2
libXft-2.1.14.tar.bz2
libXi-1.3.tar.bz2
libXinerama-1.1.tar.bz2
libXrandr-1.3.0.tar.bz2
libXres-1.0.4.tar.bz2
libXtst-1.1.0.tar.bz2
libXv-1.0.5.tar.bz2
libXvMC-1.0.5.tar.bz2
libXxf86dga-1.1.1.tar.bz2
libXxf86vm-1.1.0.tar.bz2
libdmx-1.1.0.tar.bz2
libpciaccess-0.10.9.tar.bz2
libxkbfile-1.0.6.tar.bz2
EOF

put both the script and the previous file in the packages directories, an just (sh scriptname), after that libs will be built. Ok i think this is what you need!!! By the way i am using my own distro, built up using the LFS and BLFS book, i recommend you to build gnome instead of kde, i love kde, but its new version sucks, so if you want an uptodate functional desktop Gnome-2.28.1 is the right choice.
 
Old 12-20-2009, 08:54 PM   #3
iharob
LQ Newbie
 
Registered: Nov 2009
Posts: 14

Rep: Reputation: 0
oh crap, i didn't read the entire post

Your problem is not this one, but any way, it could help someone else. You need to install xcbproto, i did not see it in BLFS development book, so may be that's why you didn't install it yet, it's not included in the other protocols you installed so find a recent version of it and install it, remember to tell me how did it go. The previous was my first post, i would love to know hot to include code in the post.
 
Old 12-21-2009, 03:35 PM   #4
itsbrad212
Member
 
Registered: Nov 2009
Location: Chicago
Distribution: Arch and OpenBSD
Posts: 104

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by iharob View Post
Your problem is not this one, but any way, it could help someone else. You need to install xcbproto, i did not see it in BLFS development book, so may be that's why you didn't install it yet, it's not included in the other protocols you installed so find a recent version of it and install it, remember to tell me how did it go. The previous was my first post, i would love to know hot to include code in the post.
Thanks for the help! I really appreciate it! Do you by chance know of a different xorg install "tutorial". I have noticed myself that BLFS is not always correct.
 
Old 12-22-2009, 08:19 PM   #5
iharob
LQ Newbie
 
Registered: Nov 2009
Posts: 14

Rep: Reputation: 0
It's not that BLFS is wrong or something, its just that you have to follow every single step, i know that by building your own distro you don't want that, but it's that way. Try getting the stable BLFS book, and use the newer packages versions you find, some patches might not be needed anymore but you might need some other patches. It is a matter of testing and experience to learn hot you can solve a problem when you are compiling a package, dependencies may appear to be missing in your way, so you can compile "wget" and a text based web browser like "links" or "lynx" (I prefer links), and google with problems you find, sometimes with header files, or configure options, CFLAGS, etc. So it is like a war and you have to fight with this stuff until you get to type "startx" and use X11, also, to build a desktop environment is even harder, so you may start a a simple one like fluxbox, and a browser like dillo after you got X11 working, and build from there GNOME or KDE.
 
  


Reply



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
Removing custom built Xorg to install Etch's Xorg kushalkoolwal Debian 4 05-30-2007 01:50 AM
install xorg in freebsd trebek *BSD 11 02-04-2007 12:28 PM
How to Install Xorg 7 mir_sheely Linux - Software 2 09-18-2006 02:42 PM
How to install Xorg? raid517 Linux - Software 5 05-10-2006 12:23 PM
Xorg install help theonebeyond Linux - Software 6 10-03-2004 10:16 AM

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

All times are GMT -5. The time now is 03:08 AM.

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