List Info

Thread: ldconfig




ldconfig
user name
2006-04-23 19:10:19
i'm going crazy on this one:

I've been trying to get sqlite3 to compile with threads on
my freebsd  
box.   ( it had a bug that wouldn't let it do it, and was
upgraded a  
few days ago, but the patch wasn't working right )

I figured there might be some issue with the linked
libraries,  so i  
tried running ldconfig.

well, ldconfig doesn't seem to work the exactly the same it
does on  
linux...   and i managed to wipe all the hints.

now my system has neither a /etc/ld.so.conf or
/etc/ld-elf.so.conf .   
(was it always like that?  i dont know)  and few apps work.

running ldconfig /libexec i can get bash running, but i kill
ssh.   
ldconfig /lib gets sshd running, but i kill bash

running ldconfig /libexec /lib seems to work .  but
obviously my box  
is trashed right now and I need to fix it.   and there's
got to be a  
better way.  google isn't much help, neither are the man
pages.  can  
someone point me in the right direction?




_______________________________________________
% NYC*BUG talk mailing list
http://
lists.nycbug.org/mailman/listinfo/talk
%Be sure to check out our Jobs and NYCBUG-announce lists
%We meet the first Wednesday of the month
ldconfig
user name
2006-04-23 19:28:00
On 4/23/06, Jonathan Vanasco <nycbug-list2xlp.com> wrote:
> i'm going crazy on this one:
>
> I've been trying to get sqlite3 to compile with
threads on my freebsd
> box.   ( it had a bug that wouldn't let it do it, and
was upgraded a
> few days ago, but the patch wasn't working right )
>
> I figured there might be some issue with the linked
libraries,  so i
> tried running ldconfig.
>
> well, ldconfig doesn't seem to work the exactly the
same it does on
> linux...   and i managed to wipe all the hints.
>
> now my system has neither a /etc/ld.so.conf or
/etc/ld-elf.so.conf .
> (was it always like that?  i dont know)  and few apps
work.
>
> running ldconfig /libexec i can get bash running, but i
kill ssh.
> ldconfig /lib gets sshd running, but i kill bash
>
> running ldconfig /libexec /lib seems to work .  but
obviously my box
> is trashed right now and I need to fix it.   and
there's got to be a
> better way.  google isn't much help, neither are the
man pages.  can
> someone point me in the right direction?

1: man ldconfig

2: as root ldconfig -m  /lib /usr/lib ...
   to get things working, you may want to add a -elf to
create a hints file

marc
>
>
>
>
> _______________________________________________
> % NYC*BUG talk mailing list
> http://
lists.nycbug.org/mailman/listinfo/talk
> %Be sure to check out our Jobs and NYCBUG-announce
lists
> %We meet the first Wednesday of the month
>


--
"We trained very hard, but it seemed that every time
we were beginning to
form into teams we would be reorganized. I was to learn
later in life that
we tend to meet any new situation by reorganizing, and a
wonderful method it
can be for creating the illusion of progress, while
producing confusion,
inefficiency and demoralization."
-Gaius Petronius, 1st Century AD

_______________________________________________
% NYC*BUG talk mailing list
http://
lists.nycbug.org/mailman/listinfo/talk
%Be sure to check out our Jobs and NYCBUG-announce lists
%We meet the first Wednesday of the month
ldconfig
user name
2006-04-23 19:22:03
Jonathan,

On Apr 23, 2006, at 3:10 PM, Jonathan Vanasco wrote:

> running ldconfig /libexec /lib seems to work .  but
obviously my box
> is trashed right now and I need to fix it.   and
there's got to be a
> better way.  google isn't much help, neither are the
man pages.  can
> someone point me in the right direction?

Maybe you can rebuild your hints off of mine.  You will
probably not  
need all the /usr/local entries:
bjornhost=>ldconfig -r
/var/run/ld-elf.so.hints:
         search directories:
/lib:/usr/lib:/usr/lib/compat:/usr/X11R6/ 
lib:/usr/local/lib:/usr/local/lib/compat/pkg:/usr/local/lib/
apache2:/ 
usr/local/lib/mysql:/usr/local/lib/pth

-Bjorn
_______________________________________________
% NYC*BUG talk mailing list
http://
lists.nycbug.org/mailman/listinfo/talk
%Be sure to check out our Jobs and NYCBUG-announce lists
%We meet the first Wednesday of the month
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )