Re: libpthread not found
On Sunday 01 March 2009 00:41:54 m.borsat...@alice.it wrote: I've installed netbeans from ports without error messages. when I started the program I got an error like this: libpthread.so.2 needed by java not found. I've verified that there is a libpthread.so.20 in /usr/local/lib/pth. Did you upgrade your machine to 6.x to 7.x recently and not recompile your ports? That's the only way I can think of that would install netbeans without error messages. Your java was compiled on 6.x and used libpthread.so.2 and libc.so.6 from there. If you installed diablo-jdk15 on your 7.x system the compat6x port should have been installed automatically. The other case that could explain this, would be that you modified ldconfig_paths in /etc/rc.conf and removed /usr/local/lib/compat/pkg. Either way, if you have: diablo-jdk-1.5.* in /var/db/pkg, you should do what Dan said and install misc/compat6x. libmap.conf is a bad idea. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: libpthread not found
In the last episode (Mar 01), Michael Powell said: m.borsat...@alice.it wrote: thanks ... but ... how? now I don't get the first message; but the second tells me that a library is missing, but it is present. anyway I' prepared a very simple /etc/libmap.conf like this: # /etc/libmap.conf # # candidate mapping # libc.so.6 /usr/compat/linux/lib/libc.so.6 Change to: libc.so.6 libc.so.7 No, definitely do not do this. The version of a shared library is bumped when incompatible changes are made. If libc.so.7 was compatible with libc.so.6, why wasn't it called libc.so.6? :) libmap.conf is only meant to exchange ABI-compatible libraries (primarily the older threads libraries libc_r, libthr, and libpthread). You want to install the compat6x port, which will install FreeBSD 6.x libraries, including libc.so.6. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
libpthread not found
Hi. I've installed netbeans from ports without error messages. when I started the program I got an error like this: libpthread.so.2 needed by java not found. I've verified that there is a libpthread.so.20 in /usr/local/lib/pth. I've done a rough attempt making a soft link; after that I've restarted netbeans; now the error message is: /libexec/ld-elf.so.1: Shared object libc.so.6 not found, required by java, also present but with version libc.so.7. the same think happen with netbeans 6.1 and with netbeans 6.4 either installed from ports or packages and also using a binaries. have I done a mistake? how can I fix it? thanks for any idea. Marco. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: libpthread not found
Then you will need to limit it to diablo only by placing it in the exec path in []'s m.borsat...@alice.it wrote: amm ... when I change the 'candidate' something strange begins to happen: bash doesn't work anymore, saying that it does not find the library. this happens as soon as I do the change, showing what you've explained to me. Marco thanks ... but ... how? now I don't get the first message; but the second tells me that a library is missing, but it is present. anyway I' prepared a very simple /etc/libmap.conf like this: # /etc/libmap.conf # # candidate mapping # libc.so.6 /usr/compat/linux/lib/libc.so.6 Change to: libc.so.6 libc.so.7 but clearly this is not enough. should I restart the system or use a program to make the change accepted? No need, it is picked up the next time the libmap.conf file is parsed. What is occurring is the java binary was built against libc.so.6, which is what you would find on a FreeBSD 6.x box. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: libpthread not found
m.borsat...@alice.it wrote: [snip] thanks ... but ... how? now I don't get the first message; but the second tells me that a library is missing, but it is present. anyway I' prepared a very simple /etc/libmap.conf like this: # /etc/libmap.conf # # candidate mapping # libc.so.6/usr/compat/linux/lib/libc.so.6 Change to: libc.so.6 libc.so.7 but clearly this is not enough. should I restart the system or use a program to make the change accepted? No need, it is picked up the next time the libmap.conf file is parsed. What is occurring is the java binary was built against libc.so.6, which is what you would find on a FreeBSD 6.x box. amm ... when I change the 'candidate' something strange begins to happen: bash doesn't work anymore, saying that it does not find the library. this happens as soon as I do the change, showing what you've explained to me. I am beginning to wonder if the problem isn't a little more involved. Did you upgrade the machine from FreeBSD 6.x to 7.x without rebuilding all your ports? With bash breaking it sounds like it was built for a 6.x box as well, which leads me to wonder how many other ports are the same way. What you also might look into is installing the misc/compat6x port. However, in any event, we need to get down to the bottom of what happened to create the situation. The most obvious thing I can think of is an upgrade of the system from 6 to 7 without a corresponding rebuild or reinstall of all ports. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
libpthread not found
amm ... when I change the 'candidate' something strange begins to happen: bash doesn't work anymore, saying that it does not find the library. this happens as soon as I do the change, showing what you've explained to me. Marco thanks ... but ... how? now I don't get the first message; but the second tells me that a library is missing, but it is present. anyway I' prepared a very simple /etc/libmap.conf like this: # /etc/libmap.conf # # candidate mapping # libc.so.6 /usr/compat/linux/lib/libc.so.6 Change to: libc.so.6 libc.so.7 but clearly this is not enough. should I restart the system or use a program to make the change accepted? No need, it is picked up the next time the libmap.conf file is parsed. What is occurring is the java binary was built against libc.so.6, which is what you would find on a FreeBSD 6.x box. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: libpthread not found
m.borsat...@alice.it wrote: thanks ... but ... how? now I don't get the first message; but the second tells me that a library is missing, but it is present. anyway I' prepared a very simple /etc/libmap.conf like this: # /etc/libmap.conf # # candidate mapping # libc.so.6 /usr/compat/linux/lib/libc.so.6 Change to: libc.so.6 libc.so.7 but clearly this is not enough. should I restart the system or use a program to make the change accepted? No need, it is picked up the next time the libmap.conf file is parsed. What is occurring is the java binary was built against libc.so.6, which is what you would find on a FreeBSD 6.x box. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: libpthread not found
m.borsat...@alice.it wrote: Hi. I've installed netbeans from ports without error messages. when I started the program I got an error like this: libpthread.so.2 needed by java not found. I've verified that there is a libpthread.so.20 in /usr/local/lib/pth. I've done a rough attempt making a soft link; after that I've restarted netbeans; now the error message is: /libexec/ld-elf.so.1: Shared object libc.so.6 not found, required by java, also present but with version libc.so.7. the same think happen with netbeans 6.1 and with netbeans 6.4 either installed from ports or packages and also using a binaries. have I done a mistake? how can I fix it? thanks for any idea. Marco. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org You may want to look at libmap.conf(5) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
libpthread not found
thanks ... but ... how? now I don't get the first message; but the second tells me that a library is missing, but it is present. anyway I' prepared a very simple /etc/libmap.conf like this: # /etc/libmap.conf # # candidate mapping # libc.so.6 /usr/compat/linux/lib/libc.so.6 but clearly this is not enough. should I restart the system or use a program to make the change accepted? Marco -Messaggio originale- Da: Aryeh M. Friedman [mailto:aryeh.fried...@gmail.com] Inviato: dom 01/03/2009 11.02 A: m.borsat...@alice.it Cc: freebsd-questions@freebsd.org Oggetto: Re: libpthread not found m.borsat...@alice.it wrote: Hi. I've installed netbeans from ports without error messages. when I started the program I got an error like this: libpthread.so.2 needed by java not found. I've verified that there is a libpthread.so.20 in /usr/local/lib/pth. I've done a rough attempt making a soft link; after that I've restarted netbeans; now the error message is: /libexec/ld-elf.so.1: Shared object libc.so.6 not found, required by java, also present but with version libc.so.7. the same think happen with netbeans 6.1 and with netbeans 6.4 either installed from ports or packages and also using a binaries. have I done a mistake? how can I fix it? thanks for any idea. Marco. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org You may want to look at libmap.conf(5) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org