LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 07-18-2009, 06:48 AM   #1
mmatt
Member
 
Registered: Nov 2005
Location: UK
Distribution: archlinux
Posts: 90
Thanked: 7
Question Strange problem: /usr/lib64/ - Not a Directory


[Log in to get rid of this advertisement]
Hello there. I've been experimenting with Arch Linux in VirtualBox to test out this pretty useful software. Whilst trying to get 3d acceleration working I checked for the existence of /usr/lib64/VBoxOGL.so and, to my astonishment, lib64 is there, but it's "Not a directory".

Has anyone ever come across something like this? I'm not sure when exactly this happened or whether its always been a file. Ever heard of a directory turning into a file?

Getting it fixed isn't too important since it's practically a fresh install, but I think it's important to find out why this has happened...
mmatt is offline  
Tag This Post ,
Reply With Quote
Old 07-18-2009, 07:23 AM   #2
johnsfine
Senior Member
 
Registered: Dec 2007
Posts: 1,680
Thanked: 179
Quote:
Originally Posted by mmatt View Post
to my astonishment, lib64 is there, but it's "Not a directory".
In Debian based systems /lib64 and /usr/lib64 are symbolic links, not actual directories. I don't know about Arch Linux

Quote:
whether its always been a file. Ever heard of a directory turning into a file?
Is it really a file, not a link?

Try
Code:
file /usr/lib64
When I do that, the output is
Code:
/usr/lib64: symbolic link to `lib'

Last edited by johnsfine; 07-18-2009 at 07:24 AM..
johnsfine is offline     Reply With Quote
Old 07-18-2009, 07:29 AM   #3
mmatt
Member
 
Registered: Nov 2005
Location: UK
Distribution: archlinux
Posts: 90
Thanked: 7

Original Poster
Ok, here's the file result...

Code:
$ file /usr/lib64
/usr/lib64: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
But I have no idea what that means...
mmatt is offline     Reply With Quote
Old 07-18-2009, 07:51 AM   #4
johnsfine
Senior Member
 
Registered: Dec 2007
Posts: 1,680
Thanked: 179
I guess that means some manual action or script tried to copy a .so file into /usr/lib64 but /usr/lib64 didn't exist, so it copied that .so to rather than into /usr/lib64

I don't know whether Arch Linux is supposed to have a /usr/lib64. Do you know whether Arch Linux is "multi lib"? Also, your whole question assumes you are using a 64 bit build of Arch Linux. If it were 32 bit, then it isn't multi lib and /usr/lib64 shouldn't exist. Please confirm that you are talking about a 64 bit build of Arch Linux.
johnsfine is offline     Reply With Quote
Thanked by:
Old 07-18-2009, 08:15 AM   #5
mmatt
Member
 
Registered: Nov 2005
Location: UK
Distribution: archlinux
Posts: 90
Thanked: 7

Original Poster
Yes, it's a 64 bit arch kernel on a 64-bit VM with a 64-bit Host. I suspect perhaps the Guest Additions may be at fault here, attempting to install into lib64. I'm just installing a fresh Arch64 onto another disk and will have a look at lib64 there...

As for multilib, I haven't installed 32-bit libraries, though I know some people do in Arch. I don't know where these end up though.

Last edited by mmatt; 07-18-2009 at 08:33 AM..
mmatt is offline     Reply With Quote
Old 07-18-2009, 09:48 AM   #6
mmatt
Member
 
Registered: Nov 2005
Location: UK
Distribution: archlinux
Posts: 90
Thanked: 7

Original Poster
Right, on a fresh install, /usr/lib64 does not exist, despite being a 64-bit system. What should I do about this to ensure that installers (e.g. vbox guest additions) are able to put things in the right place? Thanks for your help.
mmatt is offline     Reply With Quote
Old 07-18-2009, 10:02 AM   #7
mmatt
Member
 
Registered: Nov 2005
Location: UK
Distribution: archlinux
Posts: 90
Thanked: 7

Original Poster
Ok, so I fixed the problem for VBox GA by symlinking /usr/lib64 to /usr/lib as you said debian did and this fixed the problem in this instance. No need to continue that fresh installation, thanks a lot!
mmatt is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
/usr/lib vs /usr/lib64 Johncc330 Slackware 2 07-01-2009 02:04 AM
Location of libraries in /usr/lib/ or /usr/lib64/ in Slackware64 niels.horn Slackware 2 06-24-2009 05:25 AM
slackware64 /usr/lib /usr/lib64 question disturbed1 Slackware 28 05-26-2009 10:21 AM
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 10:14 PM
KDevelop on FC4_x86_64 does not look in directory '/usr/lib64' seriesx4 Programming 0 08-09-2005 07:21 PM


All times are GMT -5. The time now is 08:30 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration