# Install SQLcipher in centOS 7

**URL:** <https://discuss.zetetic.net/t/install-sqlcipher-in-centos-7/3697>\
**Category:** Issues\
**Created:** [May 28, 2019, 4:12pm UTC](https://discuss.zetetic.net/t/install-sqlcipher-in-centos-7/3697 "2019-05-28T16:12:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ichigo\_Kurosaki](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/ichigo_kurosaki/32/1068_2.png) [@Ichigo\_Kurosaki](https://discuss.zetetic.net/u/Ichigo_Kurosaki)\
**Post date:** [May 28, 2019, 4:12pm UTC](https://discuss.zetetic.net/t/install-sqlcipher-in-centos-7/3697/1 "2019-05-28T16:12:07Z")

</div>

good morning  
I have a problem installing sqlcipher in centos 7 and I already have sqlite3 installed, download the repository that they provided me with from their page: [GitHub - sqlcipher/sqlcipher: SQLCipher is a standalone fork of SQLite that adds 256 bit AES encryption of database files and other security features.](https://github.com/sqlcipher/sqlcipher)

I’m following the same steps, for its installation but it shows me that I do not have openssl, which is already installed but it tells me that it is not found, download the package, compile it and install it but it keeps checking that it is not installed to someone Has the same happened and found some solution?

error  
configure: Version number set to 3027002  
checking whether to support threadsafe operation… yes  
checking for library containing pthread\_create… -lpthread  
checking for library containing pthread\_mutexattr\_init… none required  
checking for crypto library to use… openssl  
checking for HMAC\_Init\_ex in -lcrypto… no  
configure: error: Library crypto not found. Install openssl!"  
[usuario@centos7 sqlcipher]$ openssl version  
OpenSSL 1.0.2r 26 Feb 2019

./configure --enable-tempstore=yes CFLAGS=“-DSQLITE\_HAS\_CODEC” LDFLAGS=“/home/usuario/Escritorio/openssl-1.0.2r/libcrypto.a”

./configure --enable-tempstore=yes CFLAGS=“-DSQLITE\_HAS\_CODEC” LDFLAGS=“/usr/lib/libcrypto.a”

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [May 28, 2019, 6:39pm UTC](https://discuss.zetetic.net/t/install-sqlcipher-in-centos-7/3697/2 "2019-05-28T18:39:41Z")

</div>

Hi @Ichigo_Kurosaki

It appears the call to `AC_CHECK_LIB` is failing to locate your copy of OpenSSL. You could have it skip the check by including `--with-crypto-lib=none` on your call to `./configure`, followed by specifying `-DSQLCIPHER_CRYPTO_OPENSSL` with your `CFLAGS`.

---

<div class="post-metadata">

**Author:** ![Ichigo\_Kurosaki](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/ichigo_kurosaki/32/1068_2.png) [@Ichigo\_Kurosaki](https://discuss.zetetic.net/u/Ichigo_Kurosaki)\
**Post date:** [May 28, 2019, 10:05pm UTC](https://discuss.zetetic.net/t/install-sqlcipher-in-centos-7/3697/3 "2019-05-28T22:05:49Z")

</div>

Good afternoon

the compilation turned out to be successful but there it turns out that when it executes make, it marks the following error

sqlite3.c:37456:42: error: ‘close’ no se declaró aquí (no en una función)  
{ “close”, (sqlite3\_syscall\_ptr)close, 0 },  
^  
sqlite3.c:37459:42: error: ‘access’ no se declaró aquí (no en una función)  
{ “access”, (sqlite3\_syscall\_ptr)access, 0 },  
^  
sqlite3.c:37462:42: error: ‘getcwd’ no se declaró aquí (no en una función)  
{ “getcwd”, (sqlite3\_syscall\_ptr)getcwd, 0 },  
^  
sqlite3.c:37482:42: error: ‘ftruncate’ no se declaró aquí (no en una función)  
{ “ftruncate”, (sqlite3\_syscall\_ptr)ftruncate, 0 },  
^  
sqlite3.c:37488:42: error: ‘read’ no se declaró aquí (no en una función)  
{ “read”, (sqlite3\_syscall\_ptr)read, 0 },  
^  
sqlite3.c:37499:42: error: ‘pread64’ no se declaró aquí (no en una función)  
{ “pread64”, (sqlite3\_syscall\_ptr)pread64, 0 },  
^  
sqlite3.c:37505:42: error: ‘write’ no se declaró aquí (no en una función)  
{ “write”, (sqlite3\_syscall\_ptr)write, 0 },  
^  
sqlite3.c:37517:42: error: ‘pwrite64’ no se declaró aquí (no en una función)  
{ “pwrite64”, (sqlite3\_syscall\_ptr)pwrite64, 0 },  
^  
sqlite3.c:37534:42: error: ‘unlink’ no se declaró aquí (no en una función)  
{ “unlink”, (sqlite3\_syscall\_ptr)unlink, 0 },  
^  
sqlite3.c:37543:42: error: ‘rmdir’ no se declaró aquí (no en una función)  
{ “rmdir”, (sqlite3\_syscall\_ptr)rmdir, 0 },  
^  
sqlite3.c:37547:42: error: ‘fchown’ no se declaró aquí (no en una función)  
{ “fchown”, (sqlite3\_syscall\_ptr)fchown, 0 },  
^  
sqlite3.c:37554:42: error: ‘geteuid’ no se declaró aquí (no en una función)  
{ “geteuid”, (sqlite3\_syscall\_ptr)geteuid, 0 },  
^  
sqlite3.c:37561:42: error: ‘mmap’ no se declaró aquí (no en una función)  
{ “mmap”, (sqlite3\_syscall\_ptr)mmap, 0 },  
^  
sqlite3.c:37568:42: error: ‘munmap’ no se declaró aquí (no en una función)  
{ “munmap”, (sqlite3\_syscall\_ptr)munmap, 0 },  
^  
sqlite3.c:37575:42: error: ‘mremap’ no se declaró aquí (no en una función)  
{ “mremap”, (sqlite3\_syscall\_ptr)mremap, 0 },  
^  
sqlite3.c:37589:42: error: ‘readlink’ no se declaró aquí (no en una función)  
{ “readlink”, (sqlite3\_syscall\_ptr)readlink, 0 },  
^  
Do you have to see the version that you install from sqlite?

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [May 31, 2019, 7:59pm UTC](https://discuss.zetetic.net/t/install-sqlcipher-in-centos-7/3697/4 "2019-05-31T19:59:47Z")

</div>

Hi @Ichigo_Kurosaki

Do you have the `glibc-devel` package installed on CentOS?

---

<div class="post-metadata">

**Author:** ![Ichigo\_Kurosaki](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/ichigo_kurosaki/32/1068_2.png) [@Ichigo\_Kurosaki](https://discuss.zetetic.net/u/Ichigo_Kurosaki)\
**Post date:** [May 31, 2019, 9:14pm UTC](https://discuss.zetetic.net/t/install-sqlcipher-in-centos-7/3697/5 "2019-05-31T21:14:45Z")

</div>

yes

El paquete glibc-devel-2.17-260.el7\_6.5.x86\_64 ya se encuentra instalado con su versión más reciente  
Nada para hacer  
[root@centos7 usuario]#
