Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Provide instructions for Red Hat / Fedora / CentOS #62

Open
01000101 opened this issue Oct 18, 2016 · 3 comments
Open

Provide instructions for Red Hat / Fedora / CentOS #62

01000101 opened this issue Oct 18, 2016 · 3 comments

Comments

@01000101
Copy link

I gave up after spending a half hour trying to get this to build.

Steps I took to get through some of the issues:

  • sudo dnf install qt-devel qt-config
  • sudo dnf install qt5-qmake
  • sudo ln /usr/bin/qmake-qt5 /usr/bin/qmake
  • sudo dnf install gcc-c++

Here's the error from the build process:

  g++ -c -include build/webkit_server -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWebKitWidgets -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWebKit -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -Ibuild -I/usr/lib64/qt5/mkspecs/linux-g++ -o build/moc_SetAttribute.o build/moc_SetAttribute.cpp
  g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib64 -o webkit_server build/Version.o build/EnableLogging.o build/Authenticate.o build/SetConfirmAction.o build/SetPromptAction.o build/SetPromptText.o build/ClearPromptText.o build/JavascriptAlertMessages.o build/JavascriptConfirmMessages.o build/JavascriptPromptMessages.o build/IgnoreSslErrors.o build/ResizeWindow.o build/CurrentUrl.o build/ConsoleMessages.o build/main.o build/WebPage.o build/Server.o build/Connection.o build/Command.o build/SocketCommand.o build/Visit.o build/Reset.o build/Node.o build/JavascriptInvocation.o build/Evaluate.o build/Execute.o build/FrameFocus.o build/Response.o build/NetworkAccessManager.o build/NetworkCookieJar.o build/Header.o build/Render.o build/Body.o build/Status.o build/Headers.o build/UnsupportedContentHandler.o build/SetCookie.o build/ClearCookies.o build/GetCookies.o build/CommandParser.o build/CommandFactory.o build/SetProxy.o build/NullCommand.o build/PageLoadingCommand.o build/SetTimeout.o build/GetTimeout.o build/SetSkipImageLoading.o build/WebPageManager.o build/WindowFocus.o build/GetWindowHandles.o build/GetWindowHandle.o build/TimeoutCommand.o build/SetUrlBlacklist.o build/NoOpReply.o build/JsonSerializer.o build/InvocationResult.o build/ErrorMessage.o build/Title.o build/FindCss.o build/JavascriptCommand.o build/FindXpath.o build/NetworkReplyProxy.o build/IgnoreDebugOutput.o build/Source.o build/SetHtml.o build/SetAttribute.o build/qrc_webkit_server.o build/moc_Version.o build/moc_EnableLogging.o build/moc_Authenticate.o build/moc_SetConfirmAction.o build/moc_SetPromptAction.o build/moc_SetPromptText.o build/moc_ClearPromptText.o build/moc_JavascriptAlertMessages.o build/moc_JavascriptConfirmMessages.o build/moc_JavascriptPromptMessages.o build/moc_IgnoreSslErrors.o build/moc_ResizeWindow.o build/moc_CurrentUrl.o build/moc_ConsoleMessages.o build/moc_WebPage.o build/moc_Server.o build/moc_Connection.o build/moc_Command.o build/moc_SocketCommand.o build/moc_Visit.o build/moc_Reset.o build/moc_Node.o build/moc_JavascriptInvocation.o build/moc_Evaluate.o build/moc_Execute.o build/moc_FrameFocus.o build/moc_Response.o build/moc_NetworkAccessManager.o build/moc_NetworkCookieJar.o build/moc_Header.o build/moc_Render.o build/moc_Body.o build/moc_Status.o build/moc_Headers.o build/moc_UnsupportedContentHandler.o build/moc_SetCookie.o build/moc_ClearCookies.o build/moc_GetCookies.o build/moc_CommandParser.o build/moc_CommandFactory.o build/moc_SetProxy.o build/moc_NullCommand.o build/moc_PageLoadingCommand.o build/moc_SetSkipImageLoading.o build/moc_WebPageManager.o build/moc_WindowFocus.o build/moc_GetWindowHandles.o build/moc_GetWindowHandle.o build/moc_GetTimeout.o build/moc_SetTimeout.o build/moc_TimeoutCommand.o build/moc_SetUrlBlacklist.o build/moc_NoOpReply.o build/moc_JsonSerializer.o build/moc_ErrorMessage.o build/moc_Title.o build/moc_FindCss.o build/moc_JavascriptCommand.o build/moc_FindXpath.o build/moc_NetworkReplyProxy.o build/moc_Source.o build/moc_SetHtml.o build/moc_SetAttribute.o   -lQt5WebKitWidgets -lQt5Widgets -lQt5WebKit -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread
  /usr/bin/ld: warning: libQt5WebChannel.so.5, needed by /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so, not found (try using -rpath or -rpath-link)
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QQmlWebChannel::disconnectFrom(QObject*)@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QWebChannelAbstractTransport::messageReceived(QJsonObject const&, QWebChannelAbstractTransport*)@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QQmlWebChannel::QQmlWebChannel(QObject*)@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QWebChannelAbstractTransport::staticMetaObject@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QWebChannelAbstractTransport::qt_metacast(char const*)@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QWebChannelAbstractTransport::qt_metacall(QMetaObject::Call, int, void**)@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `typeinfo for QWebChannelAbstractTransport@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QQmlWebChannel::connectTo(QObject*)@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QWebChannelAbstractTransport::~QWebChannelAbstractTransport()@Qt_5'
  /usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/libQt5WebKit.so: undefined reference to `QWebChannelAbstractTransport::QWebChannelAbstractTransport(QObject*)@Qt_5'
  collect2: error: ld returned 1 exit status
  Makefile.webkit_server:521: recipe for target 'webkit_server' failed
  make[1]: *** [webkit_server] Error 1
  make[1]: Leaving directory '/tmp/pip-build-KAPjFR/webkit-server/src'
  Makefile:42: recipe for target 'sub-src-webkit_server-pro-make_first-ordered' failed
  make: *** [sub-src-webkit_server-pro-make_first-ordered] Error 2
  error: [Errno 2] No such file or directory: 'src/webkit_server'
@brycepg
Copy link
Contributor

brycepg commented Nov 30, 2016

Try again after installing qtwebkit-devel

@brycepg
Copy link
Contributor

brycepg commented Dec 6, 2016

webkit-server is fairly similar to capybara-webkit. This link may help you.

@ppmdo
Copy link

ppmdo commented Jan 23, 2017

I succesfully installed dryscrape in Fedora 25 with the following:
sudo dnf install qtwebkit-devel qt-devel
sudo ln -s /usr/bin/qmake-qt4 /usr/bin/qmake
sudo pip3 install dryscrape

This installs qt4 and qt4-webkit's development headers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants