Hey @sergey-safarov,

After 
https://github.com/kamailio/kamailio/commit/ade4c37d8098699422e76bf0c931610d03a088a6,
 the necessary files should be installed along with the included modules. 

Both the schemas for the database type and their necessary scripts for kamctl 
should be installed. 

Just make sure to include the modules to be built and **also build** the 
`dbschema` target since it's not in the `all`/default target. This maybe can be 
avoided, if I copied from the source tree. Are those updated as well if there 
is a change in XML schemas files @miconda?

> When I try compile db_berkeley, then I see this error in the log
> ```
> -- Extra modules (if module already included already from group is ignored):
>     
> pvtpl;pua_rpc;siprepo;systemdops;log_systemd;db_text;acc_json;auth_ephemeral;jansson;db_berkeley
> -- Excluded modules (exlcude even if in included modules):
>     
> -- Found PkgConfig: /usr/bin/pkg-config (found version "2.3.0")
> -- Checking for module 'libsystemd'
> --   Found libsystemd, version 256
> -- Checking for module 'jansson'
> --   Found jansson, version 2.13.1
> CMake Error at 
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
>   Could NOT find BerkeleyDB (missing: BerkeleyDB_LIBRARY
>   BerkeleyDB_INCLUDE_DIR)
> Call Stack (most recent call first):
>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 
> (_FPHSA_FAILURE_MESSAGE)
>   cmake/modules/FindBerkeleyDB.cmake:147 (find_package_handle_standard_args)
 >  src/modules/db_berkeley/CMakeLists.txt:6 (find_package)
>  ```

Hmm, the `FindBerkeleyDB` in the `cmake` folder is responsible to find the 
database in various systems. This was taken from an online source, hoping it 
was general enough. It probably didn't account for your OS.

Can you maybe check if by replacing its content with from 
[FindBerkeleyDB.cmake](https://github.com/sum01/FindBerkeleyDB/blob/master/FindBerkeleyDB.cmake),
 fixes your error?

> Also I found need to package /usr/sbin/kambdb_recover.
This is the one found in `util` folder right? I will translate the Makefile to 
CMake and install it as well.

Remaining files yet are:
```
File not found: 
/root/rpmbuild/BUILD/kamailio-6.0.0-build/BUILDROOT/etc/kamailio/dictionary.kamailio
File not found: 
/root/rpmbuild/BUILD/kamailio-6.0.0-build/BUILDROOT/etc/kamailio/pi_framework.xml
File not found: 
/root/rpmbuild/BUILD/kamailio-6.0.0-build/BUILDROOT/etc/kamailio/tls.cfg
Directory not found: 
/root/rpmbuild/BUILD/kamailio-6.0.0-build/BUILDROOT/usr/lib64/kamailio/kamctl/dbtextdb
File not found: 
/root/rpmbuild/BUILD/kamailio-6.0.0-build/BUILDROOT/usr/lib64/kamailio/kamctl/dbtextdb/dbtextdb.py
```


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4085#issuecomment-2580255823
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4085/c2580255...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to