Discussion:
[Cppcms-users] can not install cppdb on Mac
Mohd Helmi Mohd Shariff
2017-01-14 04:05:58 UTC
Permalink
I want to install cppdb on my Mac running Mac OS Sierra. Build is ok but can't install into the directory. Here is the error: Install the project...-- Install configuration: "RelWithDebInfo"-- Installing: /usr/lib/libcppdb_sqlite3.0.3.1.dylibCMake Error at cmake_install.cmake:31 (file):  file INSTALL cannot copy file  "/Users/helmi/Downloads/cppdb/cppdb-trunk/build/libcppdb_sqlite3.0.3.1.dylib"  to "/usr/lib/libcppdb_sqlite3.0.3.1.dylib".
*I have tried with sudo make install but still the same.
Joerg Sonnenberger
2017-01-14 19:53:38 UTC
Permalink
I want to install cppdb on my Mac running Mac OS Sierra. Build is ok but can't install into the directory. Here is the error: Install the project...-- Install configuration: "RelWithDebInfo"-- Installing: /usr/lib/libcppdb_sqlite3.0.3.1.dylibCMake Error at cmake_install.cmake:31 (file):  file INSTALL cannot copy file  "/Users/helmi/Downloads/cppdb/cppdb-trunk/build/libcppdb_sqlite3.0.3.1.dylib"  to "/usr/lib/libcppdb_sqlite3.0.3.1.dylib".
*I have tried with sudo make install but still the same.
You must set a prefix outside /usr, that is verboten in recent OSX
versions for questionable "security" reasons.

Joerg
Mohd Helmi
2017-01-16 03:10:23 UTC
Permalink
Successfully installed. But get linker error when try some code. Cppdb::session get linker error.



Sent from my iPhone
Post by Joerg Sonnenberger
I want to install cppdb on my Mac running Mac OS Sierra. Build is ok but can't install into the directory. Here is the error: Install the project...-- Install configuration: "RelWithDebInfo"-- Installing: /usr/lib/libcppdb_sqlite3.0.3.1.dylibCMake Error at cmake_install.cmake:31 (file): file INSTALL cannot copy file "/Users/helmi/Downloads/cppdb/cppdb-trunk/build/libcppdb_sqlite3.0.3.1.dylib" to "/usr/lib/libcppdb_sqlite3.0.3.1.dylib".
*I have tried with sudo make install but still the same.
You must set a prefix outside /usr, that is verboten in recent OSX
versions for questionable "security" reasons.
Joerg
Loading...