Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

configure: error: Cannot find php-config. Please use --with-php-config=PATH #1

Closed
cordoval opened this Issue Jan 20, 2012 · 28 comments

Comments

Projects
None yet
5 participants

what to do?

Contributor

nlegoff commented Jan 20, 2012

Sounds like you do not have php-devel package installed.

It contains the files needed for building PHP extensions.

@cordoval cordoval closed this Jan 20, 2012

@cordoval cordoval reopened this Jan 20, 2012

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.

checking MySQL includes dir... configure: error: Cannot find MySQL header files under yes.

Contributor

romainneutron commented Jan 20, 2012

You need to install libmysqlclient-dev

thanks sudo apt-get install libmysqlclient-dev did it

i guess it cant be perfect

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.

but ok

how do i install the requirements configure: error: cannot link to libxml2
I guess i am missing xml, I guess in the docu one should provide a sudo apt-get line with all

+Dom +exif +ftp +gd2 +hash +iconv +xml +mbstring +mysql +pcre +SimpleXML +sockets +xsl +zlib +mail +mcrypt +pdo +CURL +JSON +gettext
?

on installing the second indexer extension i am getting this error:

cordoval@crucified:~/symfony_projects/resource/releases/20120120/phraseanet_indexer$ make

if test -n ""; \
    then install_name_tool -change `otool -L ./phraseanet_indexer |cut -f1 -d" "|grep libmysql` /libmysqlclient.dylib ./phraseanet_indexer; \
    fi;
Contributor

romainneutron commented Jan 20, 2012

for the phraseanet indexer you need libxml2-dev libexpat-dev

Contributor

romainneutron commented Jan 20, 2012

You can ignore "configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers."

yeah but i have it see:

root@crucified:/home/cordoval/symfony_projects/resource/releases/20120120/phraseanet_indexer# sudo apt-get install libxml2-dev libexpat-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libexpat1-dev' instead of 'libexpat-dev'
libexpat1-dev is already the newest version.
libexpat1-dev set to manually installed.
libxml2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

still getting this error

cordoval@crucified:~/symfony_projects/resource/releases/20120120/phraseanet_indexer$ make

if test -n ""; \
    then install_name_tool -change `otool -L ./phraseanet_indexer |cut -f1 -d" "|grep libmysql` /libmysqlclient.dylib ./phraseanet_indexer; \
    fi;
Contributor

romainneutron commented Jan 20, 2012

Have you :

aclocal
automake -a
autoconf
./configure
make
sudo make install

?

yes and got the error that way, I did not miss any command, now trying to see how is it that there is an OSXMYSQLLIBDIR not set perhaps ... any hints appreciated, looks you guys run on mac, have you ever tested it on ubuntu? and it is not the user, i just tried in root everything and it is the same error

Owner

jygaulier commented Jan 23, 2012

This is not an error...
OSXMYSQLLIBDIR is only used on OSX, to fix the path to the mysqllib into the executable. OSXMYSQLLIBDIR is set into the 'configure.ac' script, and checked (test -n) into the 'Makefile.am'
OSXMYSQLLIBDIR is empty on your platform, so the 'test -n' does nothing.
Anyway you can safely remove the last 4 lines (from 'all-local:') into the 'Makefile.am' script, and do "make clean" then "make" and "sudo make install".
It's ok on Debian & OSX but we will double-check on Ubuntu.
Hope this helps.

ok thanks man, I did make install and got this

root@crucified:/home/cordoval/symfony_projects/resource/releases/20120120/phraseanet_indexer# make install
make[1]: Entering directory `/home/cordoval/symfony_projects/resource/releases/20120120/phraseanet_indexer'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c phraseanet_indexer '/usr/local/bin'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/home/cordoval/symfony_projects/resource/releases/20120120/phraseanet_indexer'

binary is in place I guess that was it.

why do you guys recommend maria over mysql?

also I am now installing but on the configCheck I get

    !!! phrasea2 missing
Contributor

romainneutron commented Jan 23, 2012

You have "make install" in the wrong directory ; you did it in the indexer dir.

We recommand MariaDB over MySQL because MariaDB is more stable and queries are running faster. MariaDB is not a requirement, it is a recommendation. You can have a look at these slides by the way http://www.slideshare.net/bytebot/why-mariadb

nice, I just wonder how easy it is to setup maria...

I solve the phrasea2 problem with the php.ini https://groups.google.com/forum/#!topic/phrasea-install-en/FIMwTGopkis record

wondering if this system is for 20< people only if these cache requirements are still recommended?

*** CHECK CACHE OPCODE ***
    /!\ No opcode cache were detected. Phraseanet strongly recommends the use of XCache or APC.

*** CHECK CACHE SERVER ***
    /!\ memcache not loaded
    /!\ memcached not loaded
    /!\ redis not loaded

now that i am in the symfony2 installer I get the "phrasea2 missing" again, even though i have manually loaded again the .so extension, perhaps it is still unloaded? not sure how to go about it.

It is so nice you guys are using symfony2, it rocks.

oh no this is sf1.4 :(

oh nevermind all seems solved, just needed a restart on apache2

@cordoval cordoval closed this Jan 23, 2012

It is not recommended to install Phraseanet without HTTPS support

@cordoval cordoval reopened this Jan 23, 2012

wonder what are typical values for these are

Documents storage folder  /home/cordoval/symfony_projects/resource/storage/documents
Thumbnail storage folder setup /home/cordoval/symfony_projects/resource/storage/thumbnail_setup
Thumbnail mount point (help available below)  /home/cordoval/symfony_projects/resource/current/web


<VirtualHost *:80>
        ServerName resource.domain.com
        Alias thumbnail /home/cordoval/symfony_projects/resource/storage/mountp$
        DocumentRoot /var/www/resource.domain.com
</VirtualHost>

I am lost, i am already doing symlinks for my /var/www/site.com --> /home/cordoval/symfony_projects/resource/current
and /home/cordoval/symfony_projects/releases/20120121/Phraseanet/www

any suggestions?

i guess i just proceed then fix it

@cordoval cordoval closed this Jan 23, 2012

./configure error on CentOS 6.2 freshly installed (with all dependencies and devel ones, too):

...
checking MySQL includes dir... /usr/include/mysql
checking MySQL library... configure: error: Cannot find libmysqlclient under /usr.

libmysqlclient is there:

[root@d7 php-phrasea]# locate libmysqlclient
/usr/lib64/mysql/libmysqlclient.so.16
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so.16
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0

this is typical, please check history on ml

On Thu, Mar 15, 2012 at 7:23 PM, Diego Caravana <
reply@reply.github.com

wrote:

./configure error on CentOS 6.3 freshly installed (with all dependencies
and devel ones, too):

...
checking MySQL includes dir... /usr/include/mysql
checking MySQL library... configure: error: Cannot find libmysqlclient
under /usr.

libmysqlclient is there:

[root@d7 php-phrasea]# locate libmysqlclient
/usr/lib64/mysql/libmysqlclient.so.16
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so.16
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0


Reply to this email directly or view it on GitHub:

#1 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment