# Install dynamic libraries in php

**URL:** <https://forums.percona.com/t/install-dynamic-libraries-in-php/2051>\
**Category:** LAMP Stack\
**Created:** [December 22, 2009, 6:16am UTC](https://forums.percona.com/t/install-dynamic-libraries-in-php/2051 "2009-12-22T06:16:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ervaneet82](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@ervaneet82](https://forums.percona.com/u/ervaneet82)\
**Post date:** [December 22, 2009, 6:16am UTC](https://forums.percona.com/t/install-dynamic-libraries-in-php/2051/1 "2009-12-22T06:16:47Z")

</div>

Hi all,

I have checksum.so file. It is not the come with package actually it is made by somebody in “C” language. I want to run in php. I have added in /usr/lib64/php/modules , and /etc/php.ini extension=checksum.so. But unable to load the dynamic library.

I have php-5.3.1, how can I install the dynamic library. Can anybody help me out?

-Vaneet Gupta

---

<div class="post-metadata">

**Author:** ![xaprb](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xaprb](https://forums.percona.com/u/xaprb)\
**Post date:** [December 25, 2009, 6:07am UTC](https://forums.percona.com/t/install-dynamic-libraries-in-php/2051/2 "2009-12-25T06:07:58Z")

</div>

I would start by examining error logs.

---

<div class="post-metadata">

**Author:** ![ervaneet82](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@ervaneet82](https://forums.percona.com/u/ervaneet82)\
**Post date:** [December 29, 2009, 1:23am UTC](https://forums.percona.com/t/install-dynamic-libraries-in-php/2051/3 "2009-12-29T01:23:40Z")

</div>

Thanks, I have resolved the issue. Actually I have to put the .so file in the directory where I was running my application. Make the c program and compile it with “gcc -rdynamic -o prog3 prog3.c -dl” , it creats the execute file with name prog3 . Then call it in the php with the help of “exec” in php.

-Vaneet Gupta  
Linux Administrator
