Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbale to find libevent when running hphp #45

Closed
dwmcqueen opened this issue Feb 24, 2010 · 2 comments
Closed

Unbale to find libevent when running hphp #45

dwmcqueen opened this issue Feb 24, 2010 · 2 comments

Comments

@dwmcqueen
Copy link

I am running Ubuntu 9.10 and ran the instructions here on building. Note libevent was built. But I get the following error when compiling the hello world sample:

src# ./hphp/hphp --keep-tempdir=1 --log=3 ./hphp/test.php
running hphp...
creating temporary directory /tmp/hphp_BbFAHW ...
parsing inputs...
parsing ./hphp/test.php...
parsing inputs took 0'00" (1 ms) wall time
pre-optimizing...
pre-optimizing took 0'00" (0 ms) wall time
inferring types...
inferring types took 0'00" (0 ms) wall time
post-optimizing...
post-optimizing took 0'00" (0 ms) wall time
creating CPP files...
creating CPP files took 0'00" (27 ms) wall time
compiling and linking CPP files...
CMake Error at /root/hiphop/hiphop-php/CMake/FindLibEvent.cmake:29 (message):\n Could NOT find libevent.\nCall Stack (most recent call first):\n /root/hiphop/hiphop-php/CMake/HPHPFindLibs.cmake:38 (find_package)\n /root/hiphop/hiphop-php/CMake/HPHPSetup.cmake:2 (include)\n CMakeLists.txt:31 (include)\n\n\nmake: *** No targets specified and no makefile found. Stop.\n
compiling and linking CPP files took 0'00" (691 ms) wall time
running executable /tmp/hphp_BbFAHW/program --file ./hphp/test.php...
sh: /tmp/hphp_BbFAHW/program: not found
command failed: "/tmp/hphp_BbFAHW/program --file ./hphp/test.php"
all files saved in /tmp/hphp_BbFAHW ...
running hphp took 0'00" (879 ms) wall time

Note, libevent is in the directory above where I specified the bin was (right off the root folder)

@kandy
Copy link
Contributor

kandy commented Feb 24, 2010

Plz, specify CMAKE_PREFIX_PATH the same as on build and run again
sample: export CMAKE_PREFIX_PATH=/bin/pwd/../

@dwmcqueen
Copy link
Author

That was it. Did I miss that in the wiki?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants