Project

General

Profile

Actions

Support #2022

closed

Yum Install Missing Files

Added by Bud T over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/09/2013
Due date:
% Done:

0%

Estimated time:

Description

I'm trying an install from yum instead of source on Fedora 17. Boost 1.48 has been installed from yum.

I cannot build Wt because there are files missing.

[root@st wt-release]# cmake .
CMake Error at CMakeLists.txt:10 (find_package):
  By not providing "FindWt.cmake" in CMAKE_MODULE_PATH this project has asked
  CMake to find a package configuration file provided by "Wt", but CMake did
  not find one.

  Could not find a package configuration file provided by "Wt" with any of
  the following names:

    WtConfig.cmake
    wt-config.cmake

  Add the installation prefix of "Wt" to CMAKE_PREFIX_PATH or set "Wt_DIR" to
  a directory containing one of the above files.  If "Wt" provides a separate
  development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
[root@st wt-release]# find / -name *onfig.cmake
/usr/share/cmake/Modules/FindPkgConfig.cmake
/usr/share/cmake/Modules/UsePkgConfig.cmake
[root@st wt-release]# find / -name FindWt.cmake
[root@st wt-release]#

I don't understand how one can be expected to build a Wt application without these files being present?

Actions #1

Updated by Bud T over 10 years ago

Ok, there isn't any Wt development build available from yum. So that must be the reason why these files aren't present on the server after package install. I'll just keep debug on my local machine and release on the server since the package manager installs seem to work now for boost (header and non-header libraries) on my server.

Another question: I guess when deploying an application the files need to be recompiled on the server, right? I can't compile locally and then push to the server? If I have SVN hosted separately I don't want to compile locally, push to SVN, and then deploy to server, right? But means manual log in to server to recompile with each push. How do you guys work around this issue? I'm sorry if some of these questions are lame but I'm still a bit new to C web application development.

Actions #2

Updated by Bud T over 10 years ago

Are there any *nix flavors, incidentally, that have development builds of Wt included in their package manager? That would be nice.

Actions #3

Updated by Bud T over 10 years ago

I'm still not sure that I understand why the package installation on Fedora 17 doesn't have FindWt.cmake file in it. Could you please explain that to me?

Actions #4

Updated by Wim Dumon over 10 years ago

Apparently the packager decided not to include it. I don't know who packaged the fedora binary.

It's not an absolute requirement to have FindWt.cmake, but it's convenient if the file is installed with the proper contents by the package.

Wim.

Actions #5

Updated by Bud T over 10 years ago

Even if FindWt.cmake is not on the Fedora distribution, shouldn't the package have the configuration file present, as indicated in the section of the error message:

  Could not find a package configuration file provided by "Wt" with any of
  the following names:

    WtConfig.cmake
    wt-config.cmake

I am at a loss here as to how one can build the Wt binary if the configuration file is not even present? No cmake file exists having "wt" in its name.

[root@st ~]# find / -name "*wt*.cmake" -type f
[root@st ~]#
[root@st ~]# find / -name "*Wt*.cmake" -type f
[root@st ~]#
[root@st ~]#
Actions #6

Updated by Wim Dumon over 10 years ago

  • Status changed from New to Resolved

You can provide your own copy of FindWt.cmake, or write your own.

Actually, this is what Wt does to find its dependencies: since cmake's delivered scripts too often failed or simply did not exist for Wt's dependencies, we have written our own find scripts for nearly all dependencies. They are in the cmake folder in Wt's source tree.

BR,

Wim.

Actions #7

Updated by Koen Deforche over 10 years ago

  • Assignee set to Wim Dumon
Actions #8

Updated by Bud T over 10 years ago

I don't get it. The yum package manager installs Wt. Now what? None of the files that I would expect to see are present on the server (not just FindWt.cmake)

[root@st ~]# find / -name "*.cmake" -print | xargs grep "WtInstall"
[root@st ~]#
[root@st ~]# find / -name "FindWt.cmake"
[root@st ~]#
[root@st ~]# find /etc/wt -name "CMakeLists.txt"
[root@st ~]#
[root@st ~]#

So, it Wt already built or what? Because I don't see any source code; no build files; and no examples to build either.

[root@st ~]# find / -name "*Auth_xml.C*" -type f
[root@st ~]#
[root@st ~]# find / -name "*hello.wt*" -type f
[root@st ~]#

What is the purpose of this package? All that I can find are some libraries in lib64, a config file, and a resources folder:

[root@st ~]# find / -name "*libwt.so*" -type f
/usr/lib64/libwt.so.3.2.2
[root@st ~]# ls -al /etc/wt/
total 32
drwxr-xr-x.  2 root root  4096 Jul  8 16:34 .
drwxr-xr-x. 74 root root  4096 Jul 23 03:29 ..
-rw-r--r--.  1 root root 21867 Sep 13  2012 wt_config.xml
[root@st ~]# dir /usr/share/Wt
resources
[root@st ~]#

Basically, WTF?

Actions #9

Updated by Wim Dumon over 10 years ago

Hello Brad,

I'm not familiar with wt on fedora, but maybe you're missing the wt-devel (or wt-dev or similar) package? Do you have the header files? e.g. in /usr/include/Wt?

Wim.

Actions #10

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
  • Target version set to 3.3.1
Actions

Also available in: Atom PDF