LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-13-2017, 03:10 PM   #1
ramlinx
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Rep: Reputation: Disabled
Badly installed nvidia-driver (Problem with symlinks)


Hello,
I'm new to Slackware Linux. I installed Slackware64 14.2 yesterday on my PC. I usually don't write on forums, so I hope it's the correct place to post this question.
I have an nvidia graphics card and so I installed the proprietary drivers from Slackbuilds.org (nvidia-driver and nvidia-kernel). But after rebooting, my desktop environment didn't start correctly. It seems like the symlinks are being resetted wrongly by ldconfig (executed on boot by /etc/rc.d/rc.M) If I then rerun the installation skript (nvidia-switch --install), I can start my desktop environment.

Code:
/sbin/ldconfig (this command is in the start script /etc/rc.d/rc.M)

lrwxrwxrwx 1 root root 19 Mär 13 18:37 /usr/lib64/libGL.so.1 -> libGL.so.1.2.0-xorg*
-rwxr-xr-x 1 root root 646 Mär 12 19:03 /usr/lib64/libGL.la*
lrwxrwxrwx 1 root root 26 Mär 13 18:37 /usr/lib64/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0-xorg*
lrwxrwxrwx 1 root root 23 Mär 13 18:37 /usr/lib64/libGLESv2.so.2 -> libGLESv2.so.2.0.0-xorg*
lrwxrwxrwx 1 root root 20 Mär 13 18:37 /usr/lib64/libEGL.so.1 -> libEGL.so.1.0.0-xorg*
-rwxr-xr-x 1 root root 187376 Apr 15  2016 /usr/lib64/xorg/modules/libwfb.so*
lrwxrwxrwx 1 root root 16 Mär 13 18:30 /usr/lib64/xorg/modules/extensions/libglx.so -> libglx.so.375.39*

nvidia-switch --remove (from the slackbuild.org nvidia-driver package)
nvidia-switch --install

lrwxrwxrwx 1 root root 14 Mär 13 18:46 /usr/lib64/libGL.so.1 -> libGL.so.1.0.0*
-rwxr-xr-x 1 root root 646 Mär 12 19:03 /usr/lib64/libGL.la*
lrwxrwxrwx 1 root root 24 Mär 13 18:46 /usr/lib64/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1-nvidia*
lrwxrwxrwx 1 root root 21 Mär 13 18:46 /usr/lib64/libGLESv2.so.2 -> libGLESv2.so.2-nvidia*
lrwxrwxrwx 1 root root 18 Mär 13 18:46 /usr/lib64/libEGL.so.1 -> libEGL.so.1-nvidia*
-rwxr-xr-x 1 root root 187376 Apr 15  2016 /usr/lib64/xorg/modules/libwfb.so*
/usr/lib64/xorg/modules/extensions/libglx.so -> libglx.so.375.39*
Did I missed something installing the driver? How can i prevent ldconfig from changing the symlins?
Thanks for helping
 
Old 03-14-2017, 02:10 AM   #2
RadicalDreamer
Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 259

Rep: Reputation: 123Reputation: 123
The libraries may get mixed up between open source and blob if you make a mistake with removing nvidia in that setup from my experience. I prefer to use the long lived branch nvidia .run installer file if it works. http://www.nvidia.com/object/unix.html
Save the .run file because some updates will require a reinstall.
 
1 members found this post helpful.
Old 03-14-2017, 10:44 AM   #3
ramlinx
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yes, with the nvidia .run installer it worked perfectly. Thanks
 
1 members found this post helpful.
Old 03-14-2017, 12:51 PM   #4
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 164Reputation: 164
Welcome to the forum.

You should use "Thread Tools" at the top of the original post to mark this thread as SOLVED.
 
1 members found this post helpful.
Old 04-01-2017, 06:14 PM   #5
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 761
Blog Entries: 2

Rep: Reputation: 246Reputation: 246Reputation: 246
Just noticed this thread. This was reported on the SBo mailing list and to me directly, as maintainer, and I will be posting a fix this weekend. This ldconfig issue took me by surprise due to Nvidia's naming scheme for the GLVND versions of the drivers.
 
Old 04-05-2017, 04:04 PM   #6
Spike8605
LQ Newbie
 
Registered: Apr 2017
Posts: 13

Rep: Reputation: Disabled
Question same problem here

Hi to all, I have the same problem with nvidia drivers libs conflicting with mesa ones...
I'd like to ask if it is safe to just removepkg mesa (& mesa-compat-32)

I've lost a bit of time to figure out what the problem was exactly, since I usually use the web as last resort.
Initially I though that nvidia-switch was just taking fool of me every boot, then I've noticed it was indeed ldconfig's fault.

so, what will happen if I remove mesa?

do nvidia drivers or openGL in general rely on something that is NOT whitin nvidia packages?

will this prevent ldconfig from bothering my nvidia libraries?

thanks in advance if someone has the answer
 
Old 04-05-2017, 08:48 PM   #7
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 2,596

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
I would not do that.

The README to the nvidia slackbuilds states that you should run "nvidia-switch --remove" prior to installing the package. You can be a lazy scut (which I fully admit that I have been) and not do it; that works most of the time. When it doesn't work, it's pretty painful to fix the resulting issues (as I have found out more than once, which tells you how lazy of a scut I am).
 
Old 04-06-2017, 02:17 AM   #8
Spike8605
LQ Newbie
 
Registered: Apr 2017
Posts: 13

Rep: Reputation: Disabled
Lightbulb

Quote:
Originally Posted by Richard Cranium View Post
I would not do that.

The README to the nvidia slackbuilds states that you should run "nvidia-switch --remove" prior to installing the package. You can be a lazy scut (which I fully admit that I have been) and not do it; that works most of the time. When it doesn't work, it's pretty painful to fix the resulting issues (as I have found out more than once, which tells you how lazy of a scut I am).

Hi,

how it's possible to do nvidia-switch --remove before actually installing nvidia-driver? probably i'm not understanding something

I think you're right, maybe removing mesa would be too extreme.... mv *.-xorg somewhere else will maybe work?
will ldconfig complain upon boot?

last questions, is there a way to tell ldconfig HOW to handle that bounch of library? like blacklisting them or something along those lines?
 
Old 04-06-2017, 02:23 AM   #9
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,650

Rep: Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745
hi Spike8605, welcome to LQ.

this has already been fixed by kingbeowulf a few days ago and will go in at the next public update

https://slackbuilds.org/cgit/slackbu...804a941628dc51
 
Old 04-06-2017, 03:29 AM   #10
Spike8605
LQ Newbie
 
Registered: Apr 2017
Posts: 13

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by ponce View Post
hi Spike8605, welcome to LQ.

this has already been fixed by kingbeowulf a few days ago and will go in at the next public update

https://slackbuilds.org/cgit/slackbu...804a941628dc51
Thanks!

as far as I can understand, according to this patch, nvidia-switch will move files not to *-xorg but to xorg-* so that alphabetically they came after *-nvidia and therefore ldconf will keep the link as per-install right?

so I can safetly move those xorg files somewhere else until the update is committed to the slackbuild site?

also, do you know when the patch will be avaible in slackbuild 14.2 site?

thanks again
 
Old 04-06-2017, 03:41 AM   #11
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,650

Rep: Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745Reputation: 1745
Quote:
Originally Posted by Spike8605 View Post
as far as I can understand, according to this patch, nvidia-switch will move files not to *-xorg but to xorg-* so that alphabetically they came after *-nvidia and therefore ldconf will keep the link as per-install right?

so I can safetly move those xorg files somewhere else until the update is committed to the slackbuild site?
you can just apply the patch linked and build/install the new nvidia-driver package (you might want to execute "nvidia-switch --remove", "removepkg nvidia-driver" and reinstall mesa first).

Quote:
also, do you know when the patch will be avaible in slackbuild 14.2 site?
usually the git branches are merged by Willy or Dave (willysr and 55020 here) in the weekend.

Last edited by ponce; 04-06-2017 at 03:45 AM.
 
1 members found this post helpful.
Old 04-06-2017, 04:08 AM   #12
Spike8605
LQ Newbie
 
Registered: Apr 2017
Posts: 13

Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by ponce View Post
you can just apply the patch linked and build/install the new nvidia-driver package (you might want to execute "nvidia-switch --remove", "removepkg nvidia-driver" and reinstall mesa first).


usually the git branches are merged by Willy or Dave (willysr and 55020 here) in the weekend.
Thanks again for the quick answers I'll look forward for the merge then!

in the meanwhile, since I like to break and then fix things, I'll move the files manually before boot and see what will break (if anything at all)

Kind Regards
 
Old 04-08-2017, 06:45 PM   #13
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 761
Blog Entries: 2

Rep: Reputation: 246Reputation: 246Reputation: 246
As a reminder, the nvidia-driver libs only conflict with a few Mesa and Xorg libs. Also, mesa contains a number of libs and files utilized by ANY GPU driver you may install, so you can't just remove it. Given how the driver packages from Nvidia are organized, it is tedious to not only keep track of the libs but also which ones conflict with Xorg and Mesa.

In a worse case scenario, if you forget to 'nvidia-switch --remove' before 'removepkg nvidia-driver', just remove any dangling 'xorg' labelled files. Then you simply need to reinstall the original mesa, mesa-compat32 (if installed) and xorg-server packages from the your Slackware tree.

This also applies to the Nvidia provided binary installer: they just move the lib conflicts to /var/lib/nvidia.

I've added an option to nvidia-switch to assist in this process. To remove SBo nvidia-driver and fully restore the original packages. Simply put a copy of:
Quote:
mesa-11.2.2-$ARCH-1.txz
mesa-compat32-11.2.2-$ARCH-1compat32.txz
xorg-server-1.18.3-$ARCH-2.txz
into /root/Slackware and then:
Code:
nvidia-switch --remove
nvidia-switch --restore
removepkg nvidia-driver
removepkg nvidia-kernel
Normally, if there are no errors in my original SBo script ;-) just 'nvidia-switch --remove' before removepkg is all that is needed - besides a perusal of the README of course.

Simple. Piece of cake.

Last edited by kingbeowulf; 04-08-2017 at 06:48 PM. Reason: clarity
 
1 members found this post helpful.
Old 04-11-2017, 05:05 PM   #14
spike86
LQ Newbie
 
Registered: May 2004
Distribution: Arch
Posts: 12

Rep: Reputation: 2
Hello again and sorry for the delay, I was enjoying Slack so much that I forgot about this thread

Quote:
Originally Posted by kingbeowulf View Post
[...]Then you simply need to reinstall the original mesa, mesa-compat32 (if installed) and xorg-server packages from the your Slackware tree.
ahah already found out (the hard way, as usual ) and thrown in nouveau too, just to be on the safe side!


Quote:
Normally, if there are no errors in my original SBo script ;-) just 'nvidia-switch --remove' before removepkg is all that is needed - besides a perusal of the README of course.

Simple. Piece of cake.
I know, after moving out of the way the *-xorg files (without removing them) everything worked as expected

I already like a lot the way the Slackbuilds system (and Slack in general) work!

Thanks again for the hints and the slackbuild fix, I will update the drivers as soon as I will feel the need (if ain't broke... )

*now let's go back to remove that cursed pulseaudio thingie.....

Bye!
 
  


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
problem with installed nvidia driver geforce 6600 (debian) speed5 Linux - Hardware 0 10-22-2011 11:40 AM
Installed NVIDIA graphics Driver, One Problem fishbones Linux - Newbie 12 08-08-2008 09:50 PM
FC7 installation / Nvidia display problem - ?installed wrong driver? redfinger Linux - Newbie 3 07-02-2007 04:40 PM
Can't get X with new Nvidia driver installed Ming Dao Linux - Hardware 7 10-19-2003 11:49 PM
Nvidia driver installed now what? Devboy Linux - Software 1 07-31-2003 11:00 PM


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