Error: libstdc++.so.6 missing when starting AhsayCBS NFS on FreeBSD 10
May 15, 2025
Product Version
AhsayCBS: 7.9.0.0 to 7.17.x
Operating System
FreeBSD 10.x
Symptom
After installing AhsayCBS on FreeBSD 10, the AhsayCBS NFS service shows following error "Shared object "libstdc++.so.6" not found, required by "NfsFbdX64":
# sh install.sh
Log Time: Fri Aug 25 17:54:53 HKT 2017
Verifying current user privilege ...
Current user has enough privilege to "install".
Start configuration on BSD distribution Platform (FreeBSD)
Installing [ NFS Service (Ahsay Systems Corporation) ]
[ NFS Service (Ahsay Systems Corporation) ] Service Script created at /usr/local/cbs/nfs/bin/cbsnfs
Install Service for BSD type OS
Copying script cbsnfs to /usr/local/etc/rc.d
You may start this service by:
sh "/usr/local/etc/rc.d/cbsnfs" start &
Remember to add an entry: cbsnfs_enable="YES" to /etc/rc.conf
[ NFS Service (Ahsay Systems Corporation) ] setup completed!
Startup [ NFS Service (Ahsay Systems Corporation) ]
Starting NFS Service (Ahsay Systems Corporation)
Started [ NFS Service (Ahsay Systems Corporation) ]
root@ahsaycbs:/usr/local/cbs/nfs/bin # sh query.sh
Service Name: cbsnfs
Service Display Name: NFS Service (Ahsay Systems Corporation)
Service Description: NFS Service (Ahsay Systems Corporation)
Service Path: /usr/local/cbs/nfs/bin/startup.sh
Service Status: Running
Shared object "libstdc++.so.6" not found, required by "NfsFbdX64"
NFS Version:
NFS Status: Unknown
NFS Mount Point: -1
NFS Running Session: -1
#
Example:
The error is also show when running the AhsayCBS NFS query.sh or test.sh scripts:
# sh query.sh
Service Name: cbsnfs
Service Display Name: NFS Service (Ahsay Systems Corporation)
Service Description: NFS Service (Ahsay Systems Corporation)
Service Path: /usr/local/cbs/nfs/bin/startup.sh
Service Status: Running
Shared object "libstdc++.so.6" not found, required by "NfsFbdX64"
NFS Version:
NFS Status: Unknown
NFS Mount Point: -1
NFS Running Session: -1
#
Cause
The AhsayCBS NFS service on FreeBSD 10.x requires installation of GNU C Library (also known as glibc or libc6). The GNU C Library is not installed on FreeBSD 10.x by default.
Resolution
To install the GNU C Library port:
- Login to the AhsayCBS server as root.
- cd /usr/ports/misc/compat9x
- make install distclean