eduardok / libsmbclient-php

smbclient's extension for PHP
Other
99 stars 21 forks source link

Error While Running ./configure #59

Closed Kkumarsantosh closed 3 years ago

Kkumarsantosh commented 6 years ago

Hello,

When i execute the command ./configure it will show an error as

==================================

checking for libsmbclient support... yes, shared checking for libsmbclient.h in default paths... not found configure: error: Could not find libsmbclient.h

=================================

Please help to let me know does it also need some other client as well to install. or Which PHP version. Currently i have php 5.6

remicollet commented 6 years ago

checking for libsmbclient.h in default paths... not found

Obviously development package for libsmbclient is missing. The name and installation vary with used distribution.

Kkumarsantosh commented 6 years ago

How to install that can you help yo provide me with the steps?

Kkumarsantosh commented 6 years ago

I have smbclient installed with Version 3.6.9-168.el6_5 and i found that libsmbclient.h are also available in /usr/local/samba/include/libsmbclient.h

remicollet commented 6 years ago

On RHEL / CentOS 6, you need to install libsmbclient-devel

And probably simpler (than trying to build everything from sources) to use a RPM repository providing PHP version and extensions you need.... e.g. https://rpms.remirepo.net/wizard/

eduardok commented 3 years ago

No comments from @Kkumarsantosh , and we have no indication of build-wise issues, closing.

abulhol commented 3 years ago

+1 On Ubuntu 18, you have to install libsmbclient-dev

eduardok commented 3 years ago

+1 On Ubuntu 18, you have to install libsmbclient-dev

Yes, if you want to build from code you need to install the required header files, I'll put this on the docs.

abulhol commented 3 years ago

Thanks @eduardok !

Mica-CRT commented 2 years ago

Hi! can i install "libsmbclient-dev" on VOID-LINUX? which use XBPS as package manager, i tried but with no results :(

Mica-CRT commented 2 years ago

should i use snap? but i don't know how

eduardok commented 2 years ago

Hi! can i install "libsmbclient-dev" on VOID-LINUX? which use XBPS as package manager, i tried but with no results :(

Try:

xbps-install -Su libsmbclient
xbps-install -Su libsmbclient-devel
Mica-CRT commented 2 years ago

Thanks for the reply! I tried running these two commands, the first output me a list of broken events due to many unresolvable shlib, the second print me that "libsmbclient-devel" it's not found in repository pool

Mica-CRT commented 2 years ago

Should i add a new repo into my xbps pool?

Mica-CRT commented 2 years ago

Because i've already tried to update my sistem/remove old and no-more supported packages but still in this state