LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-14-2009, 04:06 AM   #1
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Rep: Reputation: 16
Smile {SOLVED} Install X11 fom source!


Hi All, I am a newbie to linux/unix.

Altough I have spent a good time learning linux now - but in GUI mode, as in using distros who would do the job for me to configure my drivers,desktop and give me a ready to use system. But I wanna learn thoroughly so thought to download linux - only with CLI, so I downloaded Arch Linux and I am quite happy with it. Now I want to install x on my Arch linux. I got 'All' th files downloaded, now can anybody point me to the right direction please as the 'Manually Install Xorg Help' provided by X.Org Wiki is for advanced users I guess. I tried googling as well but could not find any site explaining to install X11 from source in details.
Help with method o the website please??

Last edited by kapz; 05-09-2009 at 06:19 PM.
 
Old 03-14-2009, 09:10 AM   #2
haochao
LQ Newbie
 
Registered: Mar 2009
Location: china
Posts: 28

Rep: Reputation: 15
Why not visit Arch Wiki Home? http://wiki.archlinux.org/index.php/Main_Page
 
Old 03-14-2009, 09:54 AM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Follow the non-multilib instructions. Can't guarantee the instructions will work on Arch though.

http://cblfs.cross-lfs.org/index.php/Xorg7/Intro
 
Old 03-14-2009, 09:58 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
now can anybody point me to the right direction please as the 'Manually Install Xorg Help' provided by X.Org Wiki is for advanced users I guess. I tried googling as well but could not find any site explaining to install X11 from source in details.
You mean this guide? I have used it to build X on Slackware and I don't think it's too hard to follow. The task is a little tricky and will take some time to complete.
My advice, if you want to build X from sources, is to use the sources from the individual tarballs, or the "everything" directory and not the git repository, as it contains mostly unstable versions of various components and will hardly compile.
Some things to look after before proceeding:
You'll need the dependencies listed (mesa, xcb, etc)
Edit the build-from-tarballs.sh and comment out the drivers you don't need (for example: xf86-input-elo2300, xf86-video-neomagic etc)
Run the script as mentioned in the guide and when it finishes check the log to see what has failed. Try to correct the first couple of problems and rerun the script. You can also try to compile manually certain modules that failed, using the same prefix as the one used earlier with the build script.
Normally you'll have to run the build script a couple of times and also build manually certain components.
Finally you may need some of the software listed here installed.
 
Old 03-15-2009, 02:19 PM   #5
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Original Poster
Rep: Reputation: 16
ok All, now that I am trying to install the very first package it gives me the error whose solution is very difficult to find on web. Whenever i try to do it it gives me error.

OK here it is: I unzipped util-macro pkg...by typing #tar> -xvf util.tar.zip

#>CD util

#>./configure
***then some message comes up to check if all is fine like version of kernel and all**

#>make
make: Nothing to be done for 'all'.

#>make install
[make1]: Entering directory '/home/Xserver/util macro
[make1]: Nothing to be done for 'install-exec-am'.
test -z "/usr/local/share/aclocal" || /bin/mkdir -p


Now what next.....???

I mean how do i install it and confirm it as well!

#>
 
Old 03-15-2009, 02:57 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You cannot start compiling every component on its own because there are dependencies that must be met. For this you have to use the build script to compile the components with the required order.
Read the howto to see the build script usage.
 
Old 03-15-2009, 05:47 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Sounds like the build script would be easier for you than trying to build each package independently. However, the build script will only ensure internal Xorg dependencies are satisfied. That is, it will build the Xorg packages in the correct order. External dependencies like libpng, Mesa, FreeType, etc. will not be built by the build script. The build script is also from the Xorg 7.0 days. It won't build the most up to date Xorg.

If you want to build each package by hand, it's not that difficult. Follow the order in the build script (for Xorg 7.0 or 7.1) or the order in the link in my first post. When you run into errors, post the exact error and 10-20 lines of output before the error. Posting something like, "***then some message comes up to check if all is fine like version of kernel and all**", is of no use to anyone that might try to help you. Also, if the configure script fails, executing make and make install is pointless.
 
Old 03-16-2009, 05:18 AM   #8
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Original Poster
Rep: Reputation: 16
Hi, sorry for that kind of error message posting.

Ok now I am tripping into an entirely different thing here! I thought that maybe I have not installed external dependencies yet and for that I might be getting the problem to compile Xorg package - util.

So now I tried to install ext dependencies packages like Zlib,Expat,freetype etc.

So far I was able to compile and install only two packages viz. Zlib and Expat, apart from this not a single package would compile on my system by me!

While trying to install every other package, I get really long messages when tried to ./configure in their directory. The messages are really long, now how am I suppose to post it over here to explain about the situation?

The common things in the messages are that "/home/Add directory not found".

?????????!!
 
Old 03-16-2009, 09:27 AM   #9
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Let me reiterate my previous post.
Quote:
Originally Posted by weibullguy View Post
When you run into errors, post the exact error and 10-20 lines of output before the error.
Posting something like, "The common things in the messages are that "/home/Add directory not found".", is of no use to anyone that might try to help you.

Just copy and paste the output you want to post and wrap it in tags for easy reading. Posting 10-20 lines of output from your failed configure script isn't that much. Also, post your ./configure command with all it's options. Nothing should be looking for /home/Add unless you tell it to.
 
Old 03-17-2009, 02:30 AM   #10
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Original Poster
Rep: Reputation: 16
Ok I will take the case of xmlto-0.0.21.tar.bz2.

]# tar -xvf xmlto-0.0.21.tar.bz2

]# cd xmlto-0.0.21
]# ./configure
]# checking for a BSD compatible install
***a few lines skipped as I am not sure how to view them, as I am typing the output by looking at the screen***

checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc acepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for mktemp program... mktemp
checking for GNU find program... find
checking or bash... /bin/bash
checking for getopt program... getopt
checking whether getopt handles long options... yes
configure: creating ./congig.status
config.status: creating Makefile
config.status: creating xmlto
config.status: WARNING: xmlto.in seems to ignore the --datarootdir setting
config.status: creating xmlto.spec
config.status: creating config.h
config.status: conig.h is unchanged
config.status: executing depfiles commands
]#

**so far so good**

]# make
make all-am
make[1]: Entering directory '/home/Add_X/xmlto-0.0.21'
for xml in xmlif.xml xmlto.xml; do \
FORMAT_DIR= ./format \
/bin/bash ./xmlto -o man/man1 man ./doc/$xml ; \
done || ( RC=$?; cat ./FAQ; exit $RC )
xmlto: input does not validate (status 127)
./xmlto: line 431: xmllint: command not found
xmlto: input does not validate (status 127)
./xmlto: line 431: xmllint: command not found

Q: I'm trying to build xmlto on my debian box, but it doesnt work.

A: If you get 'Attempt to load network entity' errors when building
xmlto, your system does ot have the required support for XML
Catalogs
(http://www.oasis.open.org/committees...001-08-06.html)
In particular, Debian has no support for these. Try the Fedora
Project <http://fedoraproject.org>.
make[1]: *** [man/man1/xmlto.1] Error 127
make[1]: Leaving directory '/home/Add_X/xmlto-0.0.21'
make: *** [all] error 2
]#


THIS IS WHAT HAPPENS. HOWEVER IN OTHER PACKAGES make FAILS FOR 'Nothing to be done for 'all' ERROR.
 
Old 03-17-2009, 04:30 AM   #11
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by kapz View Post
./xmlto: line 431: xmllint: command not found
xmlto: input does not validate (status 127)
./xmlto: line 431: xmllint: command not found
You need xmllint which is provided by libxml2. You will also need DocBook XML DTD-4.x, DocBook XSL Stylesheets, and libxslt to build xmlto.

You could have figured out which package provides xmllint by searching packages here or here or using Google. You could have figured out dependencies by looking here or here. Please read the link in #4 in my signature. I'm not, nor is anyone else, going to hunt down all the dependencies for you.
 
Old 03-17-2009, 05:29 AM   #12
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Original Poster
Rep: Reputation: 16
Hey thanks a lot weibullguy...what I am gonna do is I will try to get some tutorials about make errors and all for all the oher errors!

Yeah the 4th line in the signature explains it all
 
  


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
hi fom greece and HD problem giannitsa Puppy 3 03-01-2007 05:51 AM
removing the bootloader fom fedora? blackman890 Linux - Distributions 1 08-20-2005 03:28 PM
Xorg-x11 source tree kel_en Mandriva 1 06-24-2005 03:13 PM
Viewing images fom the console dxdad Linux - Software 1 09-29-2004 05:22 PM
Windows Registry Extraction fom Linux. Le_Petit_Lapin Linux - Newbie 9 08-29-2004 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:04 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