Hi Denis,

The SIGAR library isn't available in a yum repository (last we checked).
 We usually download it and install it "by hand".  Take a look at our CentOS
5<https://github.com/hypertable/hypertable/blob/master/bin/src-utils/build-setup-centos5.sh>build
setup instructions for how to install SIGAR.  We're happy to host a
yum repository for SIGAR, if that's necessary for Fedora.

One thing we've done to reduce the dependencies with our RPM package is to
include all of the dependent libraries in the installation.

[doug@test00 ~]$ ls /opt/hypertable/doug/current/lib/
java/    libHyperThirdParty.a
libboost_filesystem.so.1.44.0    libHyperThrift.a
libboost_iostreams.so.1.44.0    libHyperThriftConfig.a
libboost_program_options.so.1.44.0  libHyperTools.a
libboost_python.so.1.44.0    libk5crypto.so.3
libboost_system.so.1.44.0    libkrb5.so.3
libboost_thread.so.1.44.0    libkrb5support.so.0
libbz2.so.1    liblog4cpp.so.4
libcom_err.so.2    libncurses.so.5
libcrypto.so.10    libpython2.6.so.1.0
libdb_cxx-4.8.so    libre2.so.0
libedit.so.0    libsigar-amd64-linux.so
libevent-1.4.so.2    libsnappy.so.1
libexpat.so.1    libssl.so.10
libgcc_s.so.1    libstdc++.so.6
libgssapi_krb5.so.2    libtcmalloc_minimal.so.4
libHyperAppHelper.a    libtcmalloc.so.4
libHyperComm.a    libthrift-0.8.0.so
libHyperCommon.a    libthriftnb-0.8.0.so
libHyperDfsBroker.a    libunwind.so.7
libHyperDfsCmds.a    libz.so.1
libHyperMaster.a    perl/
libHyperRanger.a    php/
libHyperspace.a    py/
libHypertable.a    rb/

This makes it easy to install the package without having to worry about
dependencies.  Is this something that is ok with Fedora?  Also, there are a
lot of Java .jar files that we include in the package (Hadoop, thrift,
etc.).  If we're allowed to include .jar files in the RPM, then the only
java-related dependencies would be Java itself and Hadoop.

- Doug

On Sun, Oct 21, 2012 at 6:45 AM, Denis Arnaud <[email protected]>wrote:

> Hi,
>
> when trying to compile Hypertable on Fedora 17+ (Fedora 17 and Fedora
> Rawhide), directly from the Git clone:
>  $ mkdir -p ~/dev/hypertable
>  $ cd ~/dev/hypertable
>  $ git clone git://github.com/hypertable/hypertable.git hypertablegit
>  $ rm -rf build && mkdir build
>  $ cd build
>  $ cmake ..
>
> The following Sigar-related linking error appears:
>  $ make VERBOSE=1
> Linking CXX executable bloom_filter_test
> cd /home/build/dev/hypertable/hypertablegit/build/src/cc/Common &&
> /usr/bin/cmake -E cmake_link_script
> CMakeFiles/bloom_filter_test.dir/link.txt --verbose=1
> /usr/lib/ccache/c++   -g
>  CMakeFiles/bloom_filter_test.dir/tests/bloom_filter_test.cc.o  -o
> bloom_filter_test -rdynamic libHyperCommon.a -lboost_iostreams
> -lboost_program_options -lboost_filesystem -lboost_thread-mt -lboost_system
> -lboost_chrono -lboost_python -lpython2.7 -llog4cpp -lz -lsnappy -lsigar
> -ldl -lncurses -lpthread -lre2
> libHyperCommon.a(SystemInfo.cc.o): In function
> `Hypertable::system_info_lib_version()':
> /home/build/dev/hypertable/hypertablegit/src/cc/Common/SystemInfo.cc:768:
> undefined reference to `sigar_version_get'
> libHyperCommon.a(SystemInfo.cc.o): In function
> `Hypertable::system_info_lib_version(std::ostream&)':
> /home/build/dev/hypertable/hypertablegit/src/cc/Common/SystemInfo.cc:773:
> undefined reference to `sigar_version_get'
> collect2: error: ld returned 1 exit status
> make[2]: *** [src/cc/Common/bloom_filter_test] Error 1
> make[2]: Leaving directory `/home/build/dev/hypertable/hypertablegit/build'
> make[1]: *** [src/cc/Common/CMakeFiles/bloom_filter_test.dir/all] Error 2
> make[1]: Leaving directory `/home/build/dev/hypertable/hypertablegit/build'
> make: *** [all] Error 2
>
>
> -----------------------------------------
> Note, for those interested in reproducing it, I have installed the
> following dependencies (as root):
>  yum -y install ant ant-contrib ant-scripts ant-commons-net
> ant-commons-logging \
>   boost-devel ceph-devel ceph-libs ceph-libcephfs ceph-fuse cronolog \
>   gperftools-devel gperftools-libs jemalloc-devel hoard \
>   java-1.7.0-openjdk-devel libdb-devel libdb-cxx-devel libdb-utils \
>   libevent-devel log4cpp-devel perl-Class-Accessor \
>   rrdtool-devel rrdtool-ruby ruby-RRDtool sigar-devel snappy-devel
>
>  debuginfo-install -y boost ceph cronolog db
> gperftools hoard java-1.7.0-openjdk \
>   jemalloc libevent log4cpp rrdtool ruby-RRDtool sigar snappy
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Hypertable Development" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hypertable-dev/-/YnSCrIRaWq8J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/hypertable-dev?hl=en.
>



-- 
Doug Judd
CEO, Hypertable Inc.

-- 
You received this message because you are subscribed to the Google Groups 
"Hypertable Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hypertable-dev?hl=en.

Reply via email to