LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-05-2006, 09:27 PM   #1
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
HOWTO install Xorg X11R7.0 on Slackware 10.2


HOWTO Install X11R7 on Slackware 10.2 (may work on other distros too.)
THIS is a 1-19-2006 update. If you do it this way it is alot easier to recover if things go wrong. (As suggested by Ladak, Post #17. Thanks.)
  1. Read this first.
  2. cd /usr
  3. tar cjvf X11R6.tar.bz2 X11R6
  4. mv X11R6 X11R7 #We just made a backup of X11R6 and renamed X11R6 to X11R7
  5. Pick a mirror http://wiki.x.org/wiki/Mirrors
  6. ftp to the mirror.
  7. go to directory X11R7.0/src/
  8. Either download the everything directory or all directories except everything and extras.
    NOTE: The extras directory has external dependancies which you might need (I had to get libdrm.)
    NOTE: Each tarball comes in 2 flavors, (.gz or .bz2) so choose your favorite and only download that type.
  9. Download the build-from-tarballs.sh script.
  10. Put the build-from-tarballs.sh script in your path and make it executable.
  11. If you only want to build for your particular video card and not all 40 some which Xorg supports (at this time.) You just edit the script build-from-tarballs.sh and comment out the unnecessary cards in the function build_driver_video(). So this is what my script looks like after I edited it:

    <-- snippet
    # build driver xf86-video-s3
    # build driver xf86-video-s3virge
    build driver xf86-video-savage
    # build driver xf86-video-siliconmotion
    # build driver xf86-video-sis
    build driver xf86-video-vesa
    build driver xf86-video-vga
    <-- snippet

    Notice I built drivers for my savage chip set and also a couple generic drivers, just in case. Another way to do this, I think you can just delete the tarballs for the video cards you don't need.
  12. Exit out of X
  13. To start the build go to your download directory (the everything directory if you downloaded that directory.) If you downloaded the modular directories go to the directory from which you can see all the modular directories.
  14. Start the build-from-tarballs.sh script. If building from the everything directory: build-from-tarballs.sh -e [-gz] prefix. If building from the modular directory: build-from-tarballs.sh [-gz] prefix. NOTE: -bz2 is default so if you chose to download the .gz files then you need to use -gz option. This is what I did in the everything directory:
    build-from-tarballs.sh -e -s sudo /usr/X11R7 #NOTE: /usr/X11R7 is the prefix i used.
  15. Go take a nap....
  16. chmod u+s /usr/X11R7/bin/Xorg #Must SUID the Xorg file for it to work properly.
  17. cd /usr
  18. ln -s X11R7 X11R6
  19. cd X11R7
  20. rm -fr var #This and the next step is not necessary. Remove /usr/X11R7/var and replace with a symlink to /var.
  21. ln -s /var var #If you choose not to do these steps, just remember Xorg.0.log is now in a different directory (/usr/X11R7/var/log/Xorg.0.log.)
  22. cd /usr/X11R7/lib/X11
  23. lndir /etc/X11 #This will symlink any missing files back to the original files.
  24. cd /usr/bin
  25. rm X11
  26. ln -s /usr/X11R7/bin X11
  27. startx #If startx doesn't work try reboot.

NOTE: A note about the libdrm error: ( configure: error: Package requirements (libdrm) were not met: ) I've been studying this one a little bit. It seems you can get the error even if you have libdrm installed. I had libdrm installed in /usr/local/lib but I got that error, SEE BELOW. If you have libdrm installed you can tell by running this:
ldconfig -p|grep libdrm
If it is installed then look for the libdrm.pc file in the libpath+pkgconfig e.g. /usr/local/lib/pkgconfig. If you have the libdrm.pc file then the proper way to fix the error is to set the PKG_CONFIG_PATH variable, like this:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
Then rerun the build-from-tarball.sh script.

I think that is about it. This is a crude and hastily written summary and quite likely has errors. But between this and reading the documentation provided by x.org you should get through it.

If it doesn't work and you want to undo it just delete /usr/X11R7 then untar the backup copy of /usr/X11R6 you made, then change the symlink in /usr/bin back to /usr/X11R6/bin. And you'll probably need to reboot.

Hope this helps someone.

<edit> Just found a typo in instructions, sorry about that.
ln -s X11R6 X11R7
s/b
ln -s X11R7 X11R6

Last edited by /bin/bash; 04-16-2006 at 03:33 AM.
 
Old 01-05-2006, 09:32 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by /bin/bash

If things get bad just reverse everything you did from 25 back to 14. And you'll probably need to reboot.
Made me chuckle for ten minutes.

I'll follow it tho, and let you know
 
Old 01-06-2006, 07:06 AM   #3
Ladak
LQ Newbie
 
Registered: Jan 2006
Location: Prague
Distribution: Slackware 10.2, kernel 2.6.13
Posts: 11

Rep: Reputation: 0
Thanks for this HOWTO. I've made a few unsuccessful attempts to compile install and run new X11 release. So I'll tray this and let you know.

Last edited by Ladak; 01-06-2006 at 07:11 AM.
 
Old 01-06-2006, 10:44 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Original Poster
Rep: Reputation: 47
Quote:
If things get bad just reverse everything you did from 25 back to 14. And you'll probably need to reboot.
Yes that is quite optimistic on my part, but it can be undone.

The documentation at x.org leaves out the details on switching from X11R6 to X11R7. This is the results of my "trial and error" approach of solving all the "missing files and libraries" errors I had when I did this. It is probably not the proper way but it should get you going untill some better documentation comes out.

I thought all I would have to do was change a couple symlinks and everything would work fine. That wasn't the case though, I found there are alot of missing files and libraries in the X11R7 directory tree. But by keeping a copy of the old X11R6.bak you should be able to make it work if you have missing files. You could just copy the missing files into the X11R7 directory and not symlink like I did.
 
Old 01-06-2006, 03:40 PM   #5
Ladak
LQ Newbie
 
Registered: Jan 2006
Location: Prague
Distribution: Slackware 10.2, kernel 2.6.13
Posts: 11

Rep: Reputation: 0
I tried and end up with error while compiling xserver files (in xorg-server-X11R7.0-1.0.1/hw/xfree86/os-support/). So I am curious if you made such experience as well, wether you downloaded CVS version or official X11R7 release and what version of gcc you used.
Record of whole error message is placed on separate page www dot razdva.cz/ladak/x11r7_build_error.html, because it's bloody long. (Sorry, as I am still greenhorn on Linuxquestions I can't post a link to other page so exchange please "dot" with "." to navigate there).

Thanks a lot

Last edited by Ladak; 01-06-2006 at 03:41 PM.
 
Old 01-06-2006, 10:19 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Original Poster
Rep: Reputation: 47
I built with tarballs. If you are downloading and building using cvs then these instructions do not apply. It's similar but you should be using the build.sh script in the util/modular directory.

The only error I had while building was libdrm missing.

configure: error: Package requirements (libdrm) were not met:

The way I fixed it was like this:
NOTE: Before you try this read Post #1 again. You might just need to set PKG_CONFIG_PATH to fix this problem. If that doesn't work then you can try this:

tar xjvf ../extras/libdrm-2.0.tar.bz2
cd libdrm-2.0
./configure --prefix=/usr/X11R7
make
sudo make install
cd ../

<edit>gcc --version
gcc (GCC) 3.4.5

Last edited by /bin/bash; 01-12-2006 at 10:58 AM.
 
Old 01-07-2006, 03:17 AM   #7
Ladak
LQ Newbie
 
Registered: Jan 2006
Location: Prague
Distribution: Slackware 10.2, kernel 2.6.13
Posts: 11

Rep: Reputation: 0
That's probably it. I've installed libdrm with ./configure --prefix=/usr not /usr/X11R7. I'll try and see
 
Old 01-07-2006, 11:54 AM   #8
Ladak
LQ Newbie
 
Registered: Jan 2006
Location: Prague
Distribution: Slackware 10.2, kernel 2.6.13
Posts: 11

Rep: Reputation: 0
Well, installing libdrm in /usr/X11R7 solved problem with compiling xserver. But a new one appeared. I am starting to believe gremlins exist :-).
Just for info, my new error looks like:

Quote:
make install-data-hook
make[2]: Entering directory `/home/lada/src/X11R7/font/font-adobe-utopia-type1-X11R7.0-1.0.1'
/usr/X11R7/bin/mkfontscale /usr/X11R7/lib/X11/fonts/Type1
/usr/X11R7/bin/mkfontdir /usr/X11R7/lib/X11/fonts/Type1
/usr/X11R7/lib/X11/fonts/Type1
make[2]: execvp: /usr/X11R7/lib/X11/fonts/Type1: Access denied
make[2]: *** [install-data-hook] Error 127
make[2]: Leaving directory `/home/lada/src/X11R7/font/font-adobe-utopia-type1-X11R7.0-1.0.1'
make[1]: *** [install-data-am] Error 2
make[1]: Leaving directory `/home/lada/src/X11R7/font/font-adobe-utopia-type1-X11R7.0-1.0.1'
make: *** [install-am] Error 2
I'll try ggc version from slackware-current (3.4.5). Hope this will help.
 
Old 01-07-2006, 12:09 PM   #9
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Originally Posted by Ladak
Just for info, my new error looks like:
Code:
make[2]: execvp: /usr/X11R7/lib/X11/fonts/Type1: Access denied
I'll try ggc version from slackware-current (3.4.5). Hope this will help.
Why? Do you think that the new version of gcc will ignore permissions issues? Seems permissions is where you should start looking. Not only does the indicated error message suggest this, but it is also much easier than going through gcc upgrades.
 
Old 01-07-2006, 12:19 PM   #10
Ladak
LQ Newbie
 
Registered: Jan 2006
Location: Prague
Distribution: Slackware 10.2, kernel 2.6.13
Posts: 11

Rep: Reputation: 0
Permitions, this was first I checked. But I did't find any problem in it:
Quote:
lada@zafod:~$ ls -l /usr/X11R7/lib/X11/fonts/
drwxr-xr-x 2 root root 40960 2006-01-07 15:14 100dpi/
drwxr-xr-x 2 root root 40960 2006-01-07 15:14 75dpi/
drwxr-xr-x 2 root root 4096 2006-01-07 15:14 Type1/
drwxr-xr-x 3 root root 4096 2006-01-07 15:07 encodings/
drwxr-xr-x 2 root root 4096 2006-01-07 15:06 util/
Next I thought I had full hard drive. I have still 1,9 GB available.

So I looked in execvp man page. I thing execvp is something about C language so I assume it could by problem among gcc, C language and execvp function.
 
Old 01-07-2006, 07:44 PM   #11
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Original Poster
Rep: Reputation: 47
Try making the fonts manually.

tar xjvf font-adobe-utopia-type1-X11R7.0-1.0.1.tar.bz2
cd font-adobe-utopia-type1-X11R7.0-1.0.1
./configure --prefix=/usr/X11R7
make
sudo make install
 
Old 01-07-2006, 09:14 PM   #12
TuLiss
LQ Newbie
 
Registered: Jan 2006
Posts: 11

Rep: Reputation: 0
How to packges for slackware ?

Anyone can told me, where can i find already compiled slakware packages?
 
Old 01-08-2006, 03:36 AM   #13
Ladak
LQ Newbie
 
Registered: Jan 2006
Location: Prague
Distribution: Slackware 10.2, kernel 2.6.13
Posts: 11

Rep: Reputation: 0
Uprgade GCC didn't help, the same error occured :-(. I'll try it manualy
 
Old 01-08-2006, 04:11 AM   #14
Ladak
LQ Newbie
 
Registered: Jan 2006
Location: Prague
Distribution: Slackware 10.2, kernel 2.6.13
Posts: 11

Rep: Reputation: 0
Even if I installed font-adobe-utopia-type1-X11R7.0-1.0.1 manually I ended with the same error. So I run build-from-tarballs.sh script with -n optin (-n : do not quit after error; just print error message) and solve the problem with mentioned font after whole build will be done
 
Old 01-08-2006, 04:14 AM   #15
Ladak
LQ Newbie
 
Registered: Jan 2006
Location: Prague
Distribution: Slackware 10.2, kernel 2.6.13
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by TuLiss
How to packges for slackware ?

Anyone can told me, where can i find already compiled slakware packages?
Unfortunately I haven't found them so that's why trying to build it by myself.

Last edited by Ladak; 01-08-2006 at 04:55 AM.
 
  


Reply

Tags
slackware, xorg



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
Slakware x windows install asarpe Linux - Software 3 12-03-2008 11:02 AM
in dire need of HOWTO with xorg.conf and GFX 5200 vid card Lleb_KCir Linux - General 10 07-22-2005 12:55 PM
HowTo: Make mepis with kde 3.4, gnome 2.10, xorg 6.82 cheater1034 MEPIS 10 05-28-2005 09:21 PM
Slakware 8.1 install prob Ryan_Sutton Linux - Newbie 10 07-05-2002 05:49 PM
Slakware 7.0 Installation Beano21 Linux - Software 6 05-30-2001 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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