LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-11-2012, 03:21 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Rep: Reputation: 81
help building hiphop on centos 6.3


Hi!

I have a virtual machine were I installed centos 6.3 (64 bits). I want to build hiphop on it. I didn't specify the exact problem I'm facing at the time because I'm sure I will be facing one problem after the other until I get to actually build it / run it successfully.... plus I think it could be a useful guide for anyone attempting to do it.

So.... where am I?

I got the source from github, I have already built (with hiphop patches) libevent and curl.

They are installed in /usr/local/libevent and /usr/local/curl.

Now, when I try to run hphp's configure, this is what I get:

Code:
$ ./configure 
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
CMake Error at CMake/FindBoost.cmake:640 (if):
  if had incorrect arguments: ${Boost_MINOR_VERSION} GREATER 41 AND NOT WIN32
  AND NOT APPLE (Unknown arguments specified).
Call Stack (most recent call first):
  CMake/HPHPFindLibs.cmake:22 (find_package)
  CMake/HPHPSetup.cmake:46 (include)
  src/CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!
I have already set CMAKE_PREFIX_PATH to hphp's directory.

So.... what am I to do? Thanks in advance.
 
Old 07-11-2012, 03:32 PM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
Seems like a problem with boost detection..... this is what I can show you about boost on the vm:

Code:
$ rpm -qa | grep boost
boost-filesystem-1.41.0-11.el6_1.2.x86_64
boost-thread-1.41.0-11.el6_1.2.x86_64
boost-graph-1.41.0-11.el6_1.2.x86_64
boost-signals-1.41.0-11.el6_1.2.x86_64
boost-test-1.41.0-11.el6_1.2.x86_64
boost-program-options-1.41.0-11.el6_1.2.x86_64
boost-system-1.41.0-11.el6_1.2.x86_64
boost-date-time-1.41.0-11.el6_1.2.x86_64
boost-regex-1.41.0-11.el6_1.2.x86_64
boost-wave-1.41.0-11.el6_1.2.x86_64
boost-python-1.41.0-11.el6_1.2.x86_64
boost-serialization-1.41.0-11.el6_1.2.x86_64
boost-iostreams-1.41.0-11.el6_1.2.x86_64
boost-1.41.0-11.el6_1.2.x86_64
 
Old 07-11-2012, 03:38 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
Apparently, I was missing a different package: boost-devel. I installed it and now I'm seeing a different kind of error (that I think I can handle myself). I'll let you know if I hit another brickwall so stay tuned.
 
Old 07-11-2012, 03:46 PM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
Ok.... another roadblock... now the problem is memcached:

Code:
$ ./configure 
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
-- MySQL Include dir: /usr/include  library dir: /usr/lib64/mysql
-- MySQL client libraries: mysqlclient_r
-- Found LIBMEMCACHED: /usr/lib64/libmemcached.so
CMake Error at CMake/HPHPFindLibs.cmake:46 (message):
  libmemcache is too old, found and we need 0.39
Call Stack (most recent call first):
  CMake/HPHPSetup.cmake:46 (include)
  src/CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!
SO the problem is (apparently) libmemchached's version.... this is the one I have:
Code:
$ rpm -qa | grep memcached
memcached-1.4.4-3.el6.x86_64
libmemcached-devel-0.31-1.1.el6.x86_64
libmemcached-0.31-1.1.el6.x86_64
Well, well.... so I need version 0.39 and centos has 0.31 available through yum. What can I do to get a newer version?
 
Old 07-11-2012, 03:59 PM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
By the way, I downloaded libmemcached 0.39 sources, compiled it and installed it in /usr/local/memcached (I used memcached instead of libmemcached for the prefix but anyways....).

I instructed ./configure to use it to find libraries but still says that it's an old version.... I'll double check it but just so you know how to set it:

Code:
$ ./configure -DCMAKE_LIBRARY_PATH=/usr/local/memcached/lib/
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
-- MySQL Include dir: /usr/include  library dir: /usr/lib64/mysql
-- MySQL client libraries: mysqlclient_r
CMake Error at CMake/HPHPFindLibs.cmake:46 (message):
  libmemcache is too old, found and we need 0.39
Call Stack (most recent call first):
  CMake/HPHPSetup.cmake:46 (include)
  src/CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!


---------- Post added 07-11-12 at 06:00 PM ----------

I just checked and sources are 0.49. What the hell? I'll download 0.39 exactly and see what happens.
 
Old 07-11-2012, 04:09 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
Nope.... still not working.

$ ./configure -DCMAKE_LIBRARY_PATH=/usr/local/libmemcached-0.39/lib/
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
-- MySQL Include dir: /usr/include library dir: /usr/lib64/mysql
-- MySQL client libraries: mysqlclient_r
-- Found LIBMEMCACHED: /usr/local/libmemcached-0.39/lib/libmemcached.so
CMake Error at CMake/HPHPFindLibs.cmake:46 (message):
libmemcache is too old, found and we need 0.39
Call Stack (most recent call first):
CMake/HPHPSetup.cmake:46 (include)
src/CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!
 
Old 07-11-2012, 04:09 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,543
Blog Entries: 51

Rep: Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607
Isn't that a path isue? Copy or link the new development lib versions to /usr/lib64/ if nothing else depends on memcache-devel-0.39?
 
Old 07-11-2012, 04:13 PM   #8
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
Well well.... this is very interesting.... I checked inside the cmake script. When the libmemcached problem is reported "libmemcache is too old, found and we need 0.39", between "found" and "and", the libmemcached version that is actually found is reported.... and nothing is shown.... so I think the problem is in setting that variable (which is empty as you can see), don't you think? Let's try to see what's going on.
 
Old 07-11-2012, 04:31 PM   #9
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
I hacked the CMake file that checks for libmemcached and this is where the config file is being searched:

Code:
File /usr/include/libmemcached/configure.h does not exist
So libmemcached's configure.h file is not checked for at the right location. The file is here:

Code:
$ find /usr/local/libmemcached-0.39/ -iname 'configure.h'
/usr/local/libmemcached-0.39/include/libhashkit/configure.h
/usr/local/libmemcached-0.39/include/libmemcached/configure.h
I could just hack the file and specify that path directly. Is there a more elegant way to do it? (I already tried setting CMAKE_INCLUDE_PATH but didn't work:

Code:
$ ./configure -DCMAKE_LIBRARY_PATH=/usr/local/libmemcached-0.39/lib/ -DCMAKE_INCLUDE_PATH=/usr/local/libmemcached-0.39/include/
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
-- MySQL Include dir: /usr/include  library dir: /usr/lib64/mysql
-- MySQL client libraries: mysqlclient_r
CMake Error at CMake/FindLibmemcached.cmake:33 (message):
  File /usr/include/libmemcached/configure.h does not exist
Call Stack (most recent call first):
  CMake/HPHPFindLibs.cmake:41 (find_package)
  CMake/HPHPSetup.cmake:46 (include)
  src/CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!
 
Old 07-11-2012, 04:35 PM   #10
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
I think I broke it with another -D parameter:

Code:
-DLIBMEMCACHED_INCLUDE_DIR=/usr/local/libmemcached-0.39/include/
 
Old 07-11-2012, 04:49 PM   #11
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
Where can I find tbb for centos 6.3?

Code:
$ ./configure -DLIBMEMCACHED_LIBRARY_DIR=/usr/local/libmemcached-0.39/lib/ -DLIBMEMCACHED_INCLUDE_DIR=/usr/local/libmemcached-0.39/include/ -DLIBEVENT_LIB=/usr/local/libevent/lib/libevent.so  -DCURL_LIBRARY=/usr/local/curl/lib/libcurl.so -DCURL_INCLUDE_DIR=/usr/local/curl/include/
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
-- MySQL Include dir: /usr/include  library dir: /usr/lib64/mysql
-- MySQL client libraries: mysqlclient_r
-- Found libevent: /usr/local/libevent/lib/libevent.so
-- Found GD: /usr/lib64/libgd.so
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Can't find jemalloc
-- Can't find minimal tcmalloc
ERROR: Unable to find Intel TBB install directory. 
CMake Error at CMake/HPHPFindLibs.cmake:206 (if):
  if had incorrect arguments: ${TBB_INTERFACE_VERSION} LESS 3016 (Unknown
  arguments specified).
Call Stack (most recent call first):
  CMake/HPHPSetup.cmake:46 (include)
  src/CMakeLists.txt:18 (include)


-- Configuring incomplete, errors occurred!
I don't see it in yum:

Code:
# yum search tbb
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: centos-mirror.hostdime.com.br
 * extras: centos-mirror.hostdime.com.br
 * updates: centos-mirror.hostdime.com.br
Warning: No matches found for: tbb
No Matches found
# yum search libtbb
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: centos-mirror.hostdime.com.br
 * extras: centos-mirror.hostdime.com.br
 * updates: centos-mirror.hostdime.com.br
Warning: No matches found for: libtbb
No Matches found
# yum search tbb2
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: centos-mirror.hostdime.com.br
 * extras: centos-mirror.hostdime.com.br
 * updates: centos-mirror.hostdime.com.br
Warning: No matches found for: tbb2
No Matches found
# yum search libtbb2
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: centos-mirror.hostdime.com.br
 * extras: centos-mirror.hostdime.com.br
 * updates: centos-mirror.hostdime.com.br
Warning: No matches found for: libtbb2
No Matches found
And I checked in ubuntu and there is a package for it:

Code:
$ apt-cache search tbb
libtbb-dev - parallelism library for C++ - development files
libtbb-doc - parallelism library for C++ - documentation
libtbb2 - parallelism library for C++ - runtime files
libtbb2-dbg - parallelism library for C++ - debugging symbols
tbb-examples - parallelism library for C++ - example files
 
Old 07-11-2012, 06:42 PM   #12
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
Well well.... quite a journey so far. I have had to install a lot of packages (I'll list them later on).

I think I'm about to finish running ./configure and this is the error I see at the time:

Code:
$ ./configure -DLIBMEMCACHED_LIBRARY_DIR=/usr/local/libmemcached-0.39/lib/ -DLIBMEMCACHED_INCLUDE_DIR=/usr/local/libmemcached-0.39/include/ -DLIBEVENT_LIB=/usr/local/libevent/lib/libevent.so  -DCURL_LIBRARY=/usr/local/curl/lib/libcurl.so -DCURL_INCLUDE_DIR=/usr/local/curl/include/ -DTBB_INSTALL_DIR=/home/antoranz/tbb22_20090809oss -DTBB_INCLUDE_DIR=/home/antoranz/tbb22_20090809oss/include/  -DTBB_LIBRARY=/home/antoranz/tbb22_20090809oss/build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release/libtbb.so
-- CMAKE_PREFIX_PATH was missing, proceeding anyway
-- MySQL Include dir: /usr/include  library dir: /usr/lib64/mysql
-- MySQL client libraries: mysqlclient_r
-- Found libevent: /usr/local/libevent/lib/libevent.so
-- Found GD: /usr/lib64/libgd.so
-- Found ICU header files in /usr/include
-- Found ICU libraries: /usr/lib64/libicuuc.so
-- Can't find jemalloc
-- Can't find minimal tcmalloc
-- [Warning] FindTBB.cmake: The use of TBB_ARCHITECTURE and TBB_COMPILER is deprecated and may not be supported in future versions. Please set  (using tbbvars.[bat|csh|sh]).
-- Found Intel TBB
-- Found mcrypt: /usr/lib64/libmcrypt.so
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Looking for AF_LOCAL
-- Looking for AF_LOCAL - found
-- Looking for PF_LOCAL
-- Looking for PF_LOCAL - found
-- Looking for memset
-- Looking for memset - found
-- Looking for socket
-- Looking for socket - found
-- Looking for strerror
-- Looking for strerror - found
-- Found libevent: /usr/local/libevent/lib/libevent.so
-- Looking for event_get_version_number
-- Looking for event_get_version_number - not found.
-- Performing Test HAVE_LIBEVENT_145
-- Performing Test HAVE_LIBEVENT_145 - Failed
-- Performing Test HAVE_LIBEVENT_143
-- Performing Test HAVE_LIBEVENT_143 - Failed
CMake Error at src/third_party/libafdt/CMakeLists.txt:69 (message):
  Couldn't find at least libevent 1.4.3+


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PAM_INCLUDE_PATH (ADVANCED)
   used as include directory in directory /home/antoranz/hiphop-php/src
   used as include directory in directory /home/antoranz/hiphop-php/src/third_party/xhp/xhp
   used as include directory in directory /home/antoranz/hiphop-php/src/third_party/libafdt

-- Configuring incomplete, errors occurred!
 
Old 07-11-2012, 06:58 PM   #13
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
From last messages, I had to install pam-devel and specify the exact location of TBB_MALLOC_LIBRARY:

Code:
$ ./configure -DLIBMEMCACHED_LIBRARY_DIR=/usr/local/libmemcached-0.39/lib/ -DLIBMEMCACHED_INCLUDE_DIR=/usr/local/libmemcached-0.39/include/ -DLIBEVENT_LIB=/usr/local/libevent/lib/libevent.so  -DCURL_LIBRARY=/usr/local/curl/lib/libcurl.so -DCURL_INCLUDE_DIR=/usr/local/curl/include/ -DTBB_INSTALL_DIR=/home/antoranz/tbb22_20090809oss -DTBB_INCLUDE_DIR=/home/antoranz/tbb22_20090809oss/include/  -DTBB_LIBRARY=/home/antoranz/tbb22_20090809oss/build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release/libtbb.so -DTBB_MALLOC_LIBRARY=/home/antoranz/tbb22_20090809oss/build/linux_intel64_gcc_cc4.4.6_libc2.12_kernel2.6.32_release/libtbbmalloc.so
I'm building at the moment.... let's see what happens.
 
Old 07-11-2012, 07:19 PM   #14
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,957
Blog Entries: 1

Original Poster
Rep: Reputation: 81
Ok... so it wasn't long before I hit a brickwall.

Code:
[  2%] Building C object src/third_party/libafdt/CMakeFiles/afdt.dir/src/async.c.o
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:11:19: error: event.h: No existe el fichero o el directorio
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:33: error: el campo ‘ev’ tiene tipo de dato incompleto
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: En la función ‘server_handle_client_read’:
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:83: error: ‘EV_READ’ no se declaró aquí (primer uso en esta función)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:83: error: (Cada identificador no declarado solamente se reporta una vez
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:83: error: para cada funcion en la que aparece.)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: En la función ‘server_handle_accept_read’:
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:134: error: ‘EV_READ’ no se declaró aquí (primer uso en esta función)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: En la función ‘afdt_create_server’:
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:222: error: ‘EV_READ’ no se declaró aquí (primer uso en esta función)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:222: error: ‘EV_PERSIST’ no se declaró aquí (primer uso en esta función)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: En la función ‘client_handle_read’:
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:267: error: ‘EV_TIMEOUT’ no se declaró aquí (primer uso en esta función)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:274: error: ‘EV_READ’ no se declaró aquí (primer uso en esta función)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: En la función ‘afdt_create_client’:
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:338: error: ‘EV_READ’ no se declaró aquí (primer uso en esta función)
make[2]: *** [src/third_party/libafdt/CMakeFiles/afdt.dir/src/async.c.o] Error 1
make[1]: *** [src/third_party/libafdt/CMakeFiles/afdt.dir/all] Error 2
make: *** [all] Error 2
Is there a way I can tell make to include /usr/local/libevent/include/event.h in the compilation process? Perhaps setting another variable when calling ./configure?

---------- Post added 07-11-12 at 09:19 PM ----------

in english, just in case:

Code:
[  2%] Building C object src/third_party/libafdt/CMakeFiles/afdt.dir/src/async.c.o
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:11:19: error: event.h: No such file or directory
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:33: error: field 'ev' has incomplete type
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: In function 'server_handle_client_read':
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:83: error: 'EV_READ' undeclared (first use in this function)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:83: error: (Each undeclared identifier is reported only once
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:83: error: for each function it appears in.)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: In function 'server_handle_accept_read':
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:134: error: 'EV_READ' undeclared (first use in this function)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: In function 'afdt_create_server':
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:222: error: 'EV_READ' undeclared (first use in this function)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:222: error: 'EV_PERSIST' undeclared (first use in this function)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: In function 'client_handle_read':
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:267: error: 'EV_TIMEOUT' undeclared (first use in this function)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:274: error: 'EV_READ' undeclared (first use in this function)
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c: In function 'afdt_create_client':
/home/antoranz/hiphop-php/src/third_party/libafdt/src/async.c:338: error: 'EV_READ' undeclared (first use in this function)
make[2]: *** [src/third_party/libafdt/CMakeFiles/afdt.dir/src/async.c.o] Error 1
make[1]: *** [src/third_party/libafdt/CMakeFiles/afdt.dir/all] Error 2
make: *** [all] Error 2
 
Old 07-12-2012, 03:25 AM   #15
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,543
Blog Entries: 51

Rep: Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607
Quote:
Originally Posted by eantoranz View Post
Is there a way I can tell make to include /usr/local/libevent/include/event.h in the compilation process? Perhaps setting another variable when calling ./configure?
Usually the latter should have been the case if 'configure --help' shows it honors switches like "--with-libevent-includes=", else exporting export CFLAGS="-I/usr/local/libevent/include/" before running configure could work. FWIW from your thread it's not clear if most problems have been due to older software versions RHEL uses versus brand new software required by hphp or lack of distribution-agnostic approach of the hphp build process itself but it's kind of telling the build instructions its Github offers are only for Ubuntu and BSD.
 
  


Reply

Tags
centos, configure, hiphop, hphp, installation


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hiphop - core dump right off the bat (32-bit box) eantoranz Programming 2 05-29-2012 10:00 AM
Building a locked environment on a Centos machine takayama Linux - Security 3 12-13-2011 04:44 PM
LXer: Facebook's HipHop Can Now Build Grimstad LXer Syndicated Linux News 0 05-08-2011 12:00 PM
building usbip on CentOS ratcateme Linux - Newbie 1 04-26-2010 08:13 AM
LXer: HipHop for PHP: Move Fast LXer Syndicated Linux News 0 02-03-2010 02:40 AM


All times are GMT -5. The time now is 12:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration