iliaal / php_excel

PHP Extension interface to the Excel writing/reading library
http://ilia.ws
534 stars 131 forks source link

./buildconf: No such file or directory #227

Closed aphofstede closed 3 years ago

aphofstede commented 6 years ago

The docs say to run ./buildconf --force when building for php7, but I seem to be missing something?

# ./buildconf --force
bash: ./buildconf: No such file or directory
johmue commented 6 years ago

It's part of the php source code. If you are using Linux you may need to install the php-dev package first if you only want to compile the extension w/o php source code.

aphofstede commented 6 years ago

Ah I see, it does indeed say to cd into the php source. My script does:

  # ^ ... copy libxl deps to /usr/lib/libxl and install libxml2-dev ...
  phpize && pwd && ./configure --with-libxl-libdir=/usr/lib/libxl/lib64 --with-libxl-incdir=/usr/lib/libxl/include_c
  export C_INCLUDE_PATH=/usr/include/libxml2:$C_INCLUDE_PATH
  make && make install

This works, so phpize seems to work as well. Any differences we should know about?