scraperlab / browserext

A PHP extension for web scraping and browser emulation based on QtWebKit. Supports javascript and AJAX.
MIT License
44 stars 18 forks source link

issue with centos #5

Closed mrqaidi closed 7 years ago

mrqaidi commented 8 years ago

hello i am trying to install this ext on centos i got this error while run ./build.sh

make: g++: Command not found // fix by yum install gcc-c++ make: * [downloader.o] Error 127 make: * No rule to make target /browserext-master/browser/../browserext-static/Linux_Debug/libphpbrowser.a', needed bybrowser'. Stop.

mrqaidi commented 8 years ago

after yum install gcc-c++

i got this error

In file included from guithread.cpp:1: phpbrowser.h:7:20: error: QtWebKit: No such file or directory In file included from guithread.cpp:1: phpbrowser.h:18: error: expected class-name before ‘{’ token phpbrowser.h:30: error: ‘QWebFrame’ has not been declared phpbrowser.h:31: error: ‘QWebFrame’ has not been declared phpbrowser.h:33: error: ‘QWebFrame’ has not been declared phpbrowser.h:34: error: ‘QWebFrame’ has not been declared phpbrowser.h:34: error: ‘NavigationType’ has not been declared phpbrowser.h:35: error: ‘QWebFrame’ has not been declared phpbrowser.h:44: error: ‘QWebElement’ does not name a type phpbrowser.h:56: error: ISO C++ forbids declaration of ‘QWebElement’ with no type phpbrowser.h:56: error: expected ‘,’ or ‘...’ before ‘&’ token phpbrowser.h:59: error: ‘QWebElement’ was not declared in this scope phpbrowser.h:59: error: template argument 1 is invalid phpbrowser.h:64: error: expected class-name before ‘{’ token phpbrowser.h:69: error: ‘QWebElement’ has not been declared phpbrowser.h:84: error: ISO C++ forbids declaration of ‘QWebView’ with no type phpbrowser.h:84: error: ‘QWebView’ declared as a ‘virtual’ field phpbrowser.h:84: error: expected ‘;’ before ‘’ token phpbrowser.h:85: error: ‘QWebElement’ has not been declared phpbrowser.h:86: error: ‘QWebElement’ has not been declared phpbrowser.h:92: error: ISO C++ forbids declaration of ‘QWebElement’ with no type phpbrowser.h:92: error: expected ‘,’ or ‘...’ before ‘&’ token phpbrowser.h:93: error: ‘QWebElement’ was not declared in this scope phpbrowser.h:93: error: template argument 1 is invalid phpbrowser.h:94: error: ‘QWebElement’ was not declared in this scope phpbrowser.h:94: error: template argument 1 is invalid phpbrowser.h:94: error: ‘QWebElement’ has not been declared phpbrowser.h:95: error: ‘QWebElement’ does not name a type phpbrowser.h:96: error: ‘QWebElement’ does not name a type phpbrowser.h:97: error: ‘QWebElement’ has not been declared phpbrowser.h:112: error: ‘QWebElement’ was not declared in this scope phpbrowser.h:112: error: template argument 1 is invalid phpbrowser.h:137: error: ISO C++ forbids declaration of ‘QWebElement’ with no type phpbrowser.h:137: error: expected ‘,’ or ‘...’ before ‘&’ token phpbrowser.h:139: error: ‘QWebElement’ does not name a type phpbrowser.h:145: error: ‘QWebElement’ does not name a type phpbrowser.h:198: error: ISO C++ forbids declaration of ‘QWebElement’ with no type phpbrowser.h:198: error: expected ‘,’ or ‘...’ before ‘&’ token phpbrowser.h:230: error: ‘QWebElement’ has not been declared make: ** [guithread.o] Error 1 make: * No rule to make target /browserext-master/browser/../browserext-static/Linux_Debug/libphpbrowser.a', needed bybrowser'. Stop. Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. ./build.sh: line 15: ./configure: No such file or directory make: * No targets specified and no makefile found. Stop.

scraperlab commented 8 years ago

You need these packages: gcc-c++ make php-devel qt4-devel qtwebkit-devel Xvfb

scraperlab commented 8 years ago

http://www.qtcentre.org/threads/56495-How-to-install-4-8-on-CentOS-6

scraperlab commented 8 years ago

One note, you must use 32bit Linux, in 64bit Linux browserext crashes.

mrqaidi commented 8 years ago

thats bad . i want use in 64bit

scraperlab commented 7 years ago

Now browserext is working in 64-bit Linux too.