LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-01-2005, 12:19 PM   #1
ditch*
Member
 
Registered: Jul 2004
Posts: 50

Rep: Reputation: 15
can't autoconfigure Xfree86 4.5.0


Hi!

I've been trying to install the X window system (version 4.5.0) on my laptop. The distribution I am using is Debian Woody, with kernel version 2.4.18.

I followed the instructions I downloaded from Xfree's website, obtained the correct set of binaries, with the according md5 checksums. I installed everything, without any errors and now I need to configure everything.

The installation instructions from Xfree's website say that once I have Xfree installed, I should run the following command:

XFree86 -autoconfigure

and if this doesn't work, I could use some other commands instead.

erm... none of them worked.

for each command I issued, I was told that it was not found.

Does anyone know what could be the problem or how to resolve it.

Any help would be great!

Grisha.
 
Old 08-01-2005, 12:27 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
The binaries you are trying to run are probably in /usr/X11R6/bin. Is /usr/X11R6/bin in roots $PATH ?
 
Old 08-01-2005, 12:27 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Which account were you running it under? You should be root when you run it, you may need to switch to the directory that the commands are in.
 
Old 08-02-2005, 05:15 AM   #4
ditch*
Member
 
Registered: Jul 2004
Posts: 50

Original Poster
Rep: Reputation: 15
Hey!
Thanks for replying!
Doing everything as root, here's what happened.

I cd'd into the /usr/X11R6/bin directory and typed xf86config. It said the command wasn't found. So I typed the whole path /usr/X11R6/bin/xf86config. This time it did work. After I had configured everything, I rebooted.

Then I logged in as root, cd'd into the /usr/X11R6/bin directory and typed "startx". Once again, the command wasn't found. So I typed /usr/X11R6/bin/startx. And it gave me several error messages saying that neither "xauth" nor "xinit" were found. I checked the directory - both binaries were there. Lastly I tried typing "sh startx", but I got the same result.

Somehow I have a weird feeling that something is missing... Maybe I should reinstall X ?

What do you say?
 
Old 08-02-2005, 07:54 AM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It sounds as though /usr/X11R6/bin is not in roots $PATH. You can add it to roots path with the command
Code:
export PATH=$PATH:/usr/X11R6/bin
To add it to roots $PATH everytime you open a shell edit /root/.bashrc and /root/.bash-profile and add that line
 
Old 08-02-2005, 11:27 AM   #6
ditch*
Member
 
Registered: Jul 2004
Posts: 50

Original Poster
Rep: Reputation: 15
Hi Andrew!

Thanks for the tip! It worked, but I ran into another problem. The new error message I got is:

error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

I tried searching for the libz.so.1 file, but I couldn't find it. So I decided to take a look at the installation log. This is what it said


Updating the fonts.dir file in /usr/X11R6/lib/X11/fonts/local.../usr/X11R6/bin/mkfontdir: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

Updating the fonts.dir file in /usr/X11R6/lib/X11/fonts/misc.../usr/X11R6/bin/mkfontdir: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

Do you know what this libz.so.1 file is? Should I download it from somewhere or is it part of some other program?

Thanks for the help!

Grisha.
 
Old 08-02-2005, 12:36 PM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I think the XFree86 installer puts a copy in /usr/X11R6/lib
You need to use a text editor (gedit, kate, vim) to put that directory on a line in the file /etc/ld.so.conf and then as root run /sbin/ldconfig
 
Old 08-03-2005, 05:55 AM   #8
ditch*
Member
 
Registered: Jul 2004
Posts: 50

Original Poster
Rep: Reputation: 15
I checked the /usr/X11R6/lib directory, but there was no file called "libz.so.1". It appears that this file wasn't created by the installer because in the installation log there is an error message saying that this file wasn't found. (it's in my previous post)

I tried reinstalling X, but it didn't help either. Any other ideas?

... One detail is that I am installing Debian almost from scratch. I just installed the basic OS from the first CD and I'm doing everything else myself. One of the things I still have to install is a proper c-compiler. Could this be the problem? But then again, shouldn't have this been been taken care of by the 'extract' utility which came along with XFree's tarballs?
 
Old 08-03-2005, 06:23 AM   #9
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Well you should have it on your system somewhere. Try

find / -name libz.so.1*
 
Old 08-05-2005, 02:45 AM   #10
ditch*
Member
 
Registered: Jul 2004
Posts: 50

Original Poster
Rep: Reputation: 15
bwaaaa this is annoying, but the file couldn't be found. The name of the XFree binaries I downloaded is Linux-ix86-glibc22. Is it feasible that the people with the same architecture post the file online and I just stick it into my directory?

Or could there be differences in the libz.so.1 file?

- one more thing is that I used XFree's method of determining which set of binaries to download, so I couldn't have screwed up and downloaded the wrong set.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
autoconfigure X idris1388 Linux - Software 8 04-07-2005 01:51 PM
Autoconfigure network jocast Linux - Networking 2 08-24-2004 11:01 PM
Autoconfigure with DHCP? Darkfin Linux - Networking 0 03-27-2004 08:14 PM
Help configuring XFree86 on YDL 2.3 (black screen & failed XFree86 -configure) EnVoy Linux - General 1 11-24-2003 05:32 PM
Will ATI Radeon 8500 XFree86 4.2 driver work with Xfree86 4.3? Stevetgn Linux - Hardware 1 06-24-2003 07:16 PM


All times are GMT -5. The time now is 08:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration