twobob / php-sweph

Automatically exported from code.google.com/p/php-sweph
0 stars 0 forks source link

Config error - checking for sweph files in default path...not found #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am having difficulty in the ./configure -enable-sweph step.  The error 
returned is: 

"checking for sweph files in default path... not found
configure: error: Please reinstall the sweph distribution"

What files is it looking for, and what directory are they supposed to be in?

Original issue reported on code.google.com by jameshun...@gmail.com on 9 Jul 2014 at 11:04

GoogleCodeExporter commented 8 years ago
Actually, I was able to read through the code and find line 23 in config.m4, 
where the user must manually specify the include path (this is relevant if you 
are using a local development environment such as MAMP, or anything other than 
the default include path of "/usr/bin".)

https://github.com/RodneyEarl/AstroCalendarAPI/blob/master/AstroCalendarAPI/php-
sweph/config.m4

However, after performing the "make" command which follows the ./configure 
-enable-sweph, this error is thrown:
/Applications/MAMP/bin/php/php5.2.17/bin/php-sweph/sweph.c:23:10: fatal error: 
      'swephexp.h' file not found
#include "swephexp.h"
         ^
1 error generated.
make: *** [sweph.lo] Error 1

It would seem that I have misplaced some of my files because of my non-standard 
directory structure. Where do these files belong, and how can I point the 
installers at them?

Original comment by jameshun...@gmail.com on 10 Jul 2014 at 1:07