• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

No such file or directory @ realpath_rec

ishtar

New Member


Messages: 7

#1
Hello,

Been having this issue and cant seem to figure out how to fix it. I've seen this thread but clearing
Code:
/usr/local/lib/compat/pkg
doesn't resolve the issue. For example, I just emptied it, used portupgrade to update dehydrated, and after it's completed I get the following:
Code:
===>  Cleaning for dehydrated-0.6.2_1
--->  Cleaning out obsolete shared libraries
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libXaw7.so.7
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libmysqlclient.so.20
Any idea how to get rid of these?

Thank you
 

ShelLuser

Son of Beastie

Thanks: 1,192
Messages: 2,558

#2
What exact command(s) did you use to upgrade? Also: have you been mixing ports and packages perhaps? So, at one moment you run pkg install <stuff> while in the other you're using portupgrade?
 

ishtar

New Member


Messages: 7

#3
Thanks for the reply. Today I ran the following:
portupgrade -rRf vlc

Once it was done, I could see:
Code:
--->  Cleaning out obsolete shared libraries
No such file or directory @ realpath_rec - /usr/local/lib/libXaw7.so.7.0.0
No such file or directory @ realpath_rec - /usr/local/lib/libXaw7.so.7.0.0
No such file or directory @ realpath_rec - /usr/local/lib/mysql/libmysqlclient.so.20
I even tried to symlink the files to that directory, but the link appears to vanish during the process somewhere.

As far as I know, I haven't (even accidentally) installed any packages using the pkg utility. Is there a way to trace that?


Edit:
Last night, I ran the following: portupgrade -frR apache24 freetype2

And got the following:
Code:
No such file or directory @ realpath_rec - /usr/local/lib/libvpx.so.5.0.0
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libXaw6.so.6
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/libXaw7.so.7.0.0
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/libXaw7.so.7.0.0
No such file or directory @ realpath_rec - /usr/local/lib/mysql/libmysqlclient.so.20
 

trev

Aspiring Daemon

Thanks: 100
Messages: 587

#5
Bump? Can anyone help?
Maybe, I had the same problem on my rpi2:

Code:
===>  Cleaning for ca_root_nss-3.37.3
--->  Cleaning out obsolete shared libraries
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5/libdb-5.3.so.0
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5/libdb_cxx-5.3.so.0
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5/libdb_stl-5.3.so.0
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5/libdb-5.3.so.0
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5/libdb_cxx-5.3.so.0
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5/libdb_stl-5.3.so.0
I tried deleting db5 and reinstalling, to no effect.

The library files listed above are not in the db5 directory, but the directory above that. I deleted the files from /usr/local/lib/compat/pkg and all was well.

Have you checked your /usr/local/lib/compat/pkg/ directory?
 

ishtar

New Member


Messages: 7

#6
Thanks, but that's the first thing I tried. Deleted the entire /usr/local/lib/compat/pkg directory but the problem remains.
 

trev

Aspiring Daemon

Thanks: 100
Messages: 587

#7
Let me get this right. You deleted /usr/local/lib/compat/pkg and you are still getting messages referring to that directory even though it doesn't exist?

My only other suggestion is to find one of the files being referred to and delete it (or maybe just rename it until you are certain there are no unexpected consequences). That's how I found the files in my case which were not in the directory being complained about, but the directory above.
 

ishtar

New Member


Messages: 7

#8
Well I had other ports-related issues and decided to just reinstall everything.

I deleted /usr/ports/
Looped through pkg to uninstall everything
Then wiped /var/db/pkg
And finally reinstalled ports I needed.

Everything is solved now. Whatever it was, I know the actions taken were drastic, but the end result is the issue is no longer happening.

Edit: Spoke too soon. Updated pkg, and the problem is back.

Code:
===>  Cleaning for pkg-1.10.5_1
--->  Cleaning out obsolete shared libraries
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
No such file or directory @ realpath_rec - /usr/local/lib/gcc49
So I'm 100% sure the problem is the pkg package. No clue what to do anymore.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 5,998
Messages: 26,762

#9
Top