LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Compiling PHP with LiteSpeed: No rule to make target

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2012, 12:00 PM
theRKF theRKF is offline
Member
 
Join Date: Apr 2012
Posts: 31
Default Compiling PHP with LiteSpeed: No rule to make target

I'm trying to compile PHP with LiteSpeed for the first time on a new server, using the guideline at http://www.litespeedtech.com/support...wiki:php:lsapi and using PHP 5.4.0.

Here's the ./configure command:
Quote:
./configure '--prefix=/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-pdo' '--enable-zip' '--with-curl=/opt/curlssl/' '--with-freetype-dir' '--with-jpeg-dir' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl' '--with-openssl-dir=/usr' '--with-pcre-regex' '--with-pdo-mysql' '--with-pdo-sqlite' '--with-pic' '--with-png-dir' '--with-sqlite' '--with-ttf' '--with-xsl' '--with-litespeed'
Once './configure' completes, I run 'make' and get this error:
Quote:
make: *** No rule to make target `litespeed', needed by `all'. Stop.
I have searched for a while and cannot find a solution for this problem. Has anyone run into this before?

Any ideas on a solution?


FYI: The web interface failed a number of times, so I opted for the command line install.
Reply With Quote
  #2  
Old 04-17-2012, 12:30 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
You should use the LSAPI that comes with PHP 5.4 source.
Reply With Quote
  #3  
Old 04-17-2012, 01:05 PM
theRKF theRKF is offline
Member
 
Join Date: Apr 2012
Posts: 31
Ok, I'm sold on that idea ...

Downloaded a fresh archive for php 5.4.0, ran configure, make.

That worked. Not sure what was different this time around, versus the previous 4-5 attempts
Reply With Quote
  #4  
Old 04-17-2012, 05:59 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
LSAPI from website http://www.litespeedtech.com/lsapi-downloads.html is good for 5.3 and under. For PHP 5.4, better to use the one comes with it. BTW, since LSAPI ship with PHP since 5.3, it is safe to use the one comes with the package.

Last edited by webizen; 04-17-2012 at 06:03 PM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:04 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.