Solved Cannot find libintl.so.8 even installed gettext successfully

Hi, there.
I boot the FreeBSD 13.2 by qemu, using the offical qcow2 image, and when I try to use git, wget, etc.,I got this:

Code:
root@freebsd:/usr/lib # git
ld-elf.so.1: Shared object "libintl.so.8" not found, required by "git"
root@freebsd:/usr/lib # wget
ld-elf.so.1: Shared object "libintl.so.8" not found, required by "wget"

I did a lot search and found it should be installed by gettext, then, I use pkg install -f gettext to force reinstall the gettext package. But there is nothing I want.

the pkg info shows the libintl.so.8 should be there :
Code:
root@freebsd:/usr/lib # pkg info -lx gettext | grep intl
        /usr/local/include/libintl.h
        /usr/local/lib/libintl.a
        /usr/local/lib/libintl.so
        /usr/local/lib/libintl.so.8
        /usr/local/lib/libintl.so.8.4.0
        /usr/local/share/aclocal/intlmacosx.m4

Also I will provide the pkg install detail
Code:
root@freebsd:/usr/lib # pkg -d install -f gettext
DBG(1)[1332]> pkg initialized
Updating FreeBSD repository catalogue...
DBG(1)[1332]> PkgRepo: verifying update for FreeBSD
DBG(1)[1332]> Pkgrepo, begin update of '/var/db/pkg/repos/FreeBSD/db'
DBG(1)[1332]> Request to fetch pkg+http://pkg.FreeBSD.org/FreeBSD:13:aarch64/quarterly/meta.conf
DBG(1)[1332]> curl_open
DBG(1)[1332]> Fetch: fetcher used: pkg+http
DBG(1)[1332]> curl> fetching http://pkg.FreeBSD.org/FreeBSD:13:aarch64/quarterly/meta.conf

DBG(1)[1332]> CURL> attempting to fetch from , left retry 3

* Couldn't find host pkgmir.geo.freebsd.org in the .netrc file; using defaults
* Host pkgmir.geo.freebsd.org:80 was resolved.
* IPv6: 2405:f000:202:2541::50:0
* IPv4: 192.50.199.247, 203.80.16.152
*   Trying 192.50.199.247:80...
* Connected to pkgmir.geo.freebsd.org (192.50.199.247) port 80
> GET /FreeBSD:13:aarch64/quarterly/meta.conf HTTP/1.1
Host: pkgmir.geo.freebsd.org
User-Agent: pkg/1.21.3
Accept: */*
If-Modified-Since: Thu, 06 Jun 2024 04:54:11 GMT

* Request completely sent off
< HTTP/1.1 304 Not Modified
< Server: nginx
< Date: Sun, 09 Jun 2024 03:19:18 GMT
< Last-Modified: Mon, 15 Apr 2024 22:32:53 GMT
< Connection: keep-alive
< ETag: "661dab15-b2"
< Expires: Sun, 09 Jun 2024 03:19:18 GMT
< Cache-Control: max-age=0
< Cache-Control: private
<
* Connection #0 to host pkgmir.geo.freebsd.org left intact
DBG(1)[1332]> Request to fetch pkg+http://pkg.FreeBSD.org/FreeBSD:13:aarch64/quarterly/data.pkg
DBG(1)[1332]> curl_open
DBG(1)[1332]> Fetch: fetcher used: pkg+http
DBG(1)[1332]> curl> fetching http://pkg.FreeBSD.org/FreeBSD:13:aarch64/quarterly/data.pkg

DBG(1)[1332]> CURL> attempting to fetch from , left retry 3

* Couldn't find host pkgmir.geo.freebsd.org in the .netrc file; using defaults
* Found bundle for host: 0x8d23c1d0 [serially]
* Re-using existing connection with host pkgmir.geo.freebsd.org
> GET /FreeBSD:13:aarch64/quarterly/data.pkg HTTP/1.1
Host: pkgmir.geo.freebsd.org
User-Agent: pkg/1.21.3
Accept: */*
If-Modified-Since: Thu, 06 Jun 2024 04:54:11 GMT

* Request completely sent off
< HTTP/1.1 304 Not Modified
< Server: nginx
< Date: Sun, 09 Jun 2024 03:19:18 GMT
< Last-Modified: Thu, 06 Jun 2024 04:54:11 GMT
< Connection: keep-alive
< ETag: "666140f3-6a78e8"
< Expires: Sun, 09 Jun 2024 03:19:18 GMT
< Cache-Control: max-age=0
< Cache-Control: private
<
* Connection #0 to host pkgmir.geo.freebsd.org left intact
FreeBSD repository is up to date.
All repositories are up to date.
DBG(1)[1332]> want to get an advisory lock on a database
DBG(1)[1332]> Binary> loading /var/cache/pkg/gettext-0.22.5~07775ff05a.pkg
Checking integrity...DBG(1)[1332]> check integrity for 1 items added
 done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        gettext-0.22.5

Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
DBG(1)[1332]> want to upgrade advisory to exclusive lock
[1/1] Reinstalling gettext-0.22.5...
[1/1] Extracting gettext-0.22.5: 100%
DBG(1)[1332]> Cleaning up old version
DBG(1)[1332]> release an exclusive lock on a database
DBG(1)[1332]> release an advisory lock on a database

If I can provide more information, plz tell me.

Thanks so much!
 
Back
Top