On 11/04/2013 06:15 AM, Gordon Sim wrote:
On 11/01/2013 06:42 PM, Sam Jones wrote:
I've been unsuccessful in building an RPM for the 0.24 branch of QPID under
CentOS 6.4 64-bit. My version of cmake is 2.6.4.
Steps:
svn checkout http://svn.apache.org/repos/asf/qpid/branches/0.24/qpid qpid
cd qpid/cpp
mkdir BLD
cd BLD
cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr -D CPACK_BINARY_RPM:BOOL=ON ..
make package
It seems to build fine, but it doesn't create the RPM. My final output is as
follows:
I didn't even know that cmake would automatically build rpms, I've never tried
that and its quite possible no-one else has so maybe something is missing in the
build files...
...
[ 99%] Built target request-response_server
[ 99%] Built target tradedemo_declare_queues
[ 99%] Built target tradedemo_topic_listener
[100%] Built target tradedemo_topic_publisher
Run CPack packaging tool...
CPack: Create package using RPM
CPack: Install projects
CPack: - Run preinstall target for: qpid-cpp
CPack: - Install project: qpid-cpp
CPack: Compress package
CPack: Finalize package
CPack Error: Problem copying the package:
/home/sjones/qpid/cpp/BLD/_CPack_Packages/Linux/RPM/qpid-cpp-0.24-Linux.rpm to
/home/sjones/qpid/cpp/BLD/qpid-cpp-0.24-Linux.rpm
CPack Error: Error when generating package: qpid-cpp
make: *** [package] Error 1
Any ideas?
I assume the problem in 'copying' is that
/home/sjones/qpid/cpp/BLD/_CPack_Packages/Linux/RPM/qpid-cpp-0.24-Linux.rpm
doesn't actually exist? Are there any build logs in that directory with more
detail/clues?
Just tried this myself on fedroa 18. My first attempt failed because I had some
root-owned files hanging around from a previous "sudo make install". I built in
a clean directory and it worked :)
The generated RPM didn't install:
liblinearstoreutils.so()(64bit) is needed by qpid-cpp-0.25-1.x86_64
which I tracked down to a missing install command linearstore.cmake.
I added the install command (just checked in on trunk) and now I get a little
further but still not installing:
sudo rpm -iv qpid-cpp-0.25-Linux.rpm
Preparing packages...
file /usr from install of qpid-cpp-0.25-1.x86_64 conflicts with file from
package filesystem-3.1-2.fc18.x86_64
file /usr/lib from install of qpid-cpp-0.25-1.x86_64 conflicts with file from
package filesystem-3.1-2.fc18.x86_64
file /usr/local from install of qpid-cpp-0.25-1.x86_64 conflicts with file from
package filesystem-3.1-2.fc18.x86_64
file /usr/local/bin from install of qpid-cpp-0.25-1.x86_64 conflicts with file
from package filesystem-3.1-2.fc18.x86_64
file /usr/local/etc from install of qpid-cpp-0.25-1.x86_64 conflicts with file
from package filesystem-3.1-2.fc18.x86_64
file /usr/local/include from install of qpid-cpp-0.25-1.x86_64 conflicts with
file from package filesystem-3.1-2.fc18.x86_64
file /usr/local/lib64 from install of qpid-cpp-0.25-1.x86_64 conflicts with
file from package filesystem-3.1-2.fc18.x86_64
file /usr/local/libexec from install of qpid-cpp-0.25-1.x86_64 conflicts with
file from package filesystem-3.1-2.fc18.x86_64
file /usr/local/sbin from install of qpid-cpp-0.25-1.x86_64 conflicts with file
from package filesystem-3.1-2.fc18.x86_64
file /usr/local/share from install of qpid-cpp-0.25-1.x86_64 conflicts with
file from package filesystem-3.1-2.fc18.x86_64
file /usr/local/share/man from install of qpid-cpp-0.25-1.x86_64 conflicts with
file from package filesystem-3.1-2.fc18.x86_64
file /usr/local/share/man/man1 from install of qpid-cpp-0.25-1.x86_64 conflicts
with file from package filesystem-3.1-2.fc18.x86_64
file /usr/lib/python2.7 from install of qpid-cpp-0.25-1.x86_64 conflicts with
file from package python-libs-2.7.3-13.fc18.x86_64
file /usr/lib/python2.7/site-packages from install of qpid-cpp-0.25-1.x86_64
conflicts with file from package python-libs-2.7.3-13.fc18.x86_64
which looks like the RPM is trying to create directories that already exists,
but I'm not sure whats up here. I'd really like to get this to work because it
is WAAAAAAAY faster than using rpmbuild and it generates the spec file for you :)
Cheers,
Alan.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org