LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-12-2017, 02:47 PM   #1
udiboy1209
LQ Newbie
 
Registered: Oct 2017
Distribution: LFS, Ubuntu
Posts: 2

Rep: Reputation: Disabled
evdev_drv.so cannot find libevdev.so even though it is installed and shows up in ldconfig


I recently installed XFCE on my LFS 8.0 distro, following the BLFS guide.

I installed the Xorg drivers "xf86-input-evdev" and "libevdev" successfully,
But when running startx, the xfce desktop shows up, but both the mouse and keyboard are unresponsive. The keyboard works properly before starting xfce, and I have checked output using `cat /dev/input/mice` which responds on touch.

The Xorg.0.log file shows that evdev_drv.so cannot find libevdev.so.2:

Code:
[  1372.078] (II) LoadModule: "evdev"
[  1372.078] (II) Loading /usr/X11/lib/xorg/modules/input/evdev_drv.so
[  1372.078] (EE) Failed to load /usr/X11/lib/xorg/modules/input/evdev_drv.so: libevdev.so.2: cannot open shared object file: No such file or directory
[  1372.078] (II) UnloadModule: "evdev"
[  1372.078] (II) Unloading evdev
[  1372.078] (EE) Failed to load module "evdev" (loader failed, 7)
[  1372.078] (EE) No input driver matching `evdev'
This is the output of `ldconfig -p | grep evdev`

Code:
	libevdev.so.2 (libc6,x86-64) => /usr/X11/lib/libevdev.so.2
	libevdev.so (libc6,x86-64) => /usr/X11/lib/libevdev.so
Both the library files are present in the said locations, and "/usr/X11/lib" is present in LIBRARY_PATH too. Why can't "evdev_drv" load "libevdev"?

Should I fall back to "libinput"? I have read that it is not recommended on modern hardware.
 
Old 10-13-2017, 11:47 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
A favourite reason for that is 32 bit files on 64 bit systems, or vice versa.

Check that with 'file' command.
 
Old 10-13-2017, 11:55 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Did you carry out all the instructions in the section "Introduction to Xorg-7"? There are some specific paragraphs there for users who are using an XORG prefix other than /usr.
 
Old 10-13-2017, 01:00 PM   #4
udiboy1209
LQ Newbie
 
Registered: Oct 2017
Distribution: LFS, Ubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
A favourite reason for that is 32 bit files on 64 bit systems, or vice versa.
I rebuilt both modules from Ubuntu using chroot, and then rebooted into LFS and xfce started working.
I had rebuilt before viewing this thread so I couldn't check with 'file', but I remember that I had built 'evdev' from LFS and not in chroot.
Would that lead to 32-bit library being built? I will check once I reboot into LFS by building again.

Quote:
Did you carry out all the instructions in the section "Introduction to Xorg-7"?
Yes I had the $XORG_CONFIG and $XORG_PREFIX variables set correctly, and I had made all changes listed there.

Last edited by udiboy1209; 10-13-2017 at 01:01 PM.
 
Old 10-13-2017, 01:19 PM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Quote:
Originally Posted by udiboy1209 View Post
I rebuilt both modules from Ubuntu using chroot, and then rebooted into LFS and xfce started working.
I had rebuilt before viewing this thread so I couldn't check with 'file', but I remember that I had built 'evdev' from LFS and not in chroot.
Would that lead to 32-bit library being built? I will check once I reboot into LFS by building again.
It shouldn't. LFS (as against CLFS) can't build a system with a different architecture from the host. And in any case, you can't chroot from a 32-bit system into a 64-bit one or vice versa.

Most people, by the time they get around to building X, are working entirely in the new system. It shouldn't cause any problems.
 
Old 10-16-2017, 07:58 AM   #6
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
You need to add /usr/X11/lib to /etc/ld.so.conf and re-run ldconfig as root.
 
  


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
rpm fails but still shows installed gusthecat Linux - General 7 06-10-2013 01:45 PM
Software shows up as installed and not installed at same time in zypper. LazerPhreak Linux - Software 2 12-13-2009 01:01 AM
Why there is difference between new compiled evdev_drv.so and kernel's evdev_drv.so ? xingxd Linux - General 0 09-13-2008 01:47 AM
can't find ldconfig mickeyboa Fedora 6 09-10-2005 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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