J
J
joker2k12017-03-22 21:50:56
linux
joker2k1, 2017-03-22 21:50:56

How to specify the required shared library for assembly?

Dear Linux gurus, tell a newbie, or tell me where to read.
I'm using ubuntu 16.04
I downloaded and compiled sqlite(with like support for Cyrillic) , installed it, the library was installed in /usr/local/lib, and the system one is in /usr/lib/x86_64-linux-gnu
How can I install it as a system one?
Because when building an extension for php, php_sqlite.so it is going to work with the system one, and does not see mine
. Of course, I can simply replace it by rewriting the system one with my own, but it seems to me that this is not correct. (so far I did it, but I want to know how to do it right)
so question 2
1) how to build php_sqlite.so by pointing it to my library?
2) is it necessary to replace the system, and if necessary, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
joker2k1, 2017-03-22
@joker2k1

dealt with the first one myself, build with --with-sqlite3=shared,/usr/local/lib

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question