There is a small cmake script that is used to locate Thrift.  You can find
it in the source tree here:

cmake/FindThrift.cmake

That file will show you how cmake locates Thrift and with that knowledge
you should be able to figure out why it is not being found on your system.

- Doug



On Tue, Nov 19, 2013 at 5:37 PM, <[email protected]> wrote:

> yes, i have built thrift and made install.
>
> use command as follows:
> ./configure --without-csharp --without-erlang --without-ruby
> --without-haskell
> make
> make install
>
> thrift head file and library in path as follows:
> [jack@hyt210 thrift-0.8.0]$ cd /usr/local/include/thrift/
> [jack@hyt210 thrift]$ pwd
> /usr/local/include/thrift
> [jack@hyt210 thrift]$ ll
> total 72
> drwxr-xr-x 2 root root  4096 Nov 18 23:30 async
> drwxr-xr-x 2 root root  4096 Nov 18 23:30 concurrency
> -rw-r--r-- 1 root root 12541 Nov 18 23:30 config.h
> drwxr-xr-x 2 root root  4096 Nov 18 23:30 processor
> drwxr-xr-x 2 root root  4096 Nov 18 23:30 protocol
> drwxr-xr-x 2 root root  4096 Nov 18 23:30 server
> -rw-r--r-- 1 root root  3071 Nov 18 23:30 TApplicationException.h
> -rw-r--r-- 1 root root  5461 Nov 18 23:30 Thrift.h
> -rw-r--r-- 1 root root  8172 Nov 18 23:30 TLogging.h
> -rw-r--r-- 1 root root  6845 Nov 18 23:30 TProcessor.h
> drwxr-xr-x 2 root root  4096 Nov 18 23:30 transport
> -rw-r--r-- 1 root root  2806 Nov 18 23:30 TReflectionLocal.h
>
> [jack@hyt210 thrift]$ cd ../../
> [jack@hyt210 local]$ cd lib
> [jack@hyt210 lib]$ ls libthrift
> libthrift-0.8.0.so    libthriftnb-0.8.0.so  libthriftnb.so
>  libthriftz.a
> libthrift.a           libthriftnb.a         libthrift.so
> libthriftz.la
> libthrift.la          libthriftnb.la        libthriftz-0.8.0.so
> libthriftz.so
>
> but why it doesn't work as i hoped. need more hlep.
>
> 在 2013年11月20日星期三UTC+8上午1时29分07秒,Doug Judd写道:
>>
>> So this looks like the problem:
>>
>> -- Thrift compiler/libraries NOT found. Thrift support will be disabled
>> (127, /usr/local/include/thrift, /usr/local/lib/libthrift.so,
>> /usr/local/lib/libthriftnb.so)
>>
>> Did you build thrift and do 'make install' ?
>>
>> - Doug
>>
>>
>>
>> On Mon, Nov 18, 2013 at 9:11 PM, <[email protected]> wrote:
>>
>>> the error as follows:
>>> [root@hyt210 src-utils]# sudo ./htpkg --srcdir /hypertable --thriftdir
>>> /usr/src/thrift RPM TBZ2
>>> -- Use thread library: -lpthread
>>> -- Python Shell Version: Python 2.6.6
>>> -- Found Python-devel: /usr/lib64/libpython2.6.so
>>> -- Looking for required boost libraries...
>>> -- GCC version: 4.4.7
>>> -- Boost version: 1_44
>>> -- Boost thread lib: /usr/local/lib/libboost_thread.so
>>> -- Boost program options lib: /usr/local/lib/libboost_program_options.so
>>> -- Boost filesystem lib: /usr/local/lib/libboost_filesystem.so
>>> -- Boost iostreams lib: /usr/local/lib/libboost_iostreams.so
>>> -- Boost python lib: BOOST_PYTHON_LIB-NOTFOUND
>>> -- Boost chrono lib: BOOST_CHRONO_LIB-NOTFOUND
>>> -- Boost system lib: /usr/local/lib/libboost_system.so
>>> -- Boost lib dir: /usr/local/lib
>>> -- Boost libs: /usr/local/lib/libboost_iostreams.so;/usr/local/lib/
>>> libboost_program_options.so;/usr/local/lib/libboost_
>>> filesystem.so;/usr/local/lib/libboost_thread.so;/usr/local/
>>> lib/libboost_system.so
>>> -- Found BerkeleyDB: /usr/local/BerkeleyDB.4.8/lib/libdb_cxx.so
>>> -- Berkeley DB version: 4.8.26
>>> -- Found Editline: /usr/local/lib/libedit.so
>>> -- cb=TRUE c= val= foo=Change Dir: /home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-
>>> utils/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp
>>>
>>> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
>>> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
>>> CMakeFiles/cmTryCompileExec.dir/build
>>> gmake[1]: Entering directory `/home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-
>>> utils/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp'
>>> /usr/bin/cmake -E cmake_progress_report /home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-
>>> utils/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles 1
>>> Building CXX object CMakeFiles/cmTryCompileExec.dir/SystemVersion.cc.o
>>> /usr/bin/c++    -I/usr/local/include   -o 
>>> CMakeFiles/cmTryCompileExec.dir/SystemVersion.cc.o
>>> -c /hypertable/cmake/SystemVersion.cc
>>> Linking CXX executable cmTryCompileExec
>>> /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt
>>> --verbose=1
>>> /usr/bin/c++        -fPIC CMakeFiles/cmTryCompileExec.dir/SystemVersion.cc.o
>>>  -o cmTryCompileExec -rdynamic -ldl /usr/local/lib/libsigar-amd64-linux.so
>>> -ldl
>>> gmake[1]: Leaving directory `/home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-
>>> utils/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp'
>>>
>>> -- Found SIGAR: /usr/local/lib/libsigar-amd64-linux.so;dl
>>> -- Operating System: Red Hat_Enterprise Linux 6
>>> -- Found RE2: /usr/local/lib/libre2.so
>>> --        version: 0.0.0
>>> -- Found Snappy: /usr/local/lib/libsnappy.so
>>> --        version: 0.0.0
>>> -- Found rrdtool in /usr/bin
>>> -- Found cronolog in /usr/local/sbin
>>> -- Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
>>> -- Not Found Tcmalloc: Tcmalloc_LIBRARY-NOTFOUND
>>> -- Not Found Jemalloc: Jemalloc_LIBRARY-NOTFOUND
>>> -- Not Found Hoard: Hoard_LIBRARY-NOTFOUND
>>> -- Did not find ceph libraries
>>> -- Ant: not found
>>> --     Javac: javac 1.6.0_31
>>> -- Found libevent: /usr/lib64/libevent.so
>>> -- Thrift compiler/libraries NOT found. Thrift support will be disabled
>>> (127, /usr/local/include/thrift, /usr/local/lib/libthrift.so,
>>> /usr/local/lib/libthriftnb.so)
>>> -- Thrift for ruby not found. ThriftBroker support for ruby will be
>>> disabled
>>> -- PHP Thrift files not found. ThriftBroker support for php will be
>>> disabled
>>> -- Thrift for perl not found. ThriftBroker support for perl will be
>>> disabled
>>> -- Found thrift for python
>>> -- Java JNI not found. Legacy Hadoop support will be disabled.
>>> -- Copying PHP files into installation
>>> -- Copying Perl files into installation
>>> WARNING: /usr/lib64/libexpat.so is prelinked, RPMs may require --nomd5
>>> WARNING: /usr/lib64/libbz2.so is prelinked, RPMs may require --nomd5
>>> WARNING: /usr/lib64/libz.so is prelinked, RPMs may require --nomd5
>>> WARNING: /usr/lib64/libncurses.so is prelinked, RPMs may require --nomd5
>>> WARNING: /lib64/libgcc_s.so.1 is prelinked, RPMs may require --nomd5
>>> WARNING: /usr/lib64/libstdc++.so.6 is prelinked, RPMs may require --nomd5
>>> -- Configuring done
>>> -- Generating done
>>> -- Build files have been written to: /home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-utils
>>> CPack: Create package using RPM
>>> CPack: Install projects
>>> CPack: - Run preinstall target for: HYPERTABLE
>>> CPack Error: Problem running install command: /usr/bin/gmake "preinstall"
>>> Please check /home/jack/Downloads/hypertable-master_src_0.9.7.8_
>>> modify_offset-limit/bin/src-utils/_CPack_Packages/Linux/RPM/PreinstallOutput.log
>>> for errors
>>> CPack Error: Error when generating package: hypertable
>>> -- Use thread library: -lpthread
>>> -- Python Shell Version: Python 2.6.6
>>> -- Found Python-devel: /usr/lib64/libpython2.6.so
>>> -- Looking for required boost libraries...
>>> -- GCC version: 4.4.7
>>> -- Boost version: 1_44
>>> -- Boost thread lib: /usr/local/lib/libboost_thread.so
>>> -- Boost program options lib: /usr/local/lib/libboost_program_options.so
>>> -- Boost filesystem lib: /usr/local/lib/libboost_filesystem.so
>>> -- Boost iostreams lib: /usr/local/lib/libboost_iostreams.so
>>> -- Boost python lib: BOOST_PYTHON_LIB-NOTFOUND
>>> -- Boost chrono lib: BOOST_CHRONO_LIB-NOTFOUND
>>> -- Boost system lib: /usr/local/lib/libboost_system.so
>>> -- Boost lib dir: /usr/local/lib
>>> -- Boost libs: /usr/local/lib/libboost_iostreams.so;/usr/local/lib/
>>> libboost_program_options.so;/usr/local/lib/libboost_
>>> filesystem.so;/usr/local/lib/libboost_thread.so;/usr/local/
>>> lib/libboost_system.so
>>> -- Found BerkeleyDB: /usr/local/BerkeleyDB.4.8/lib/libdb_cxx.so
>>> -- Berkeley DB version: 4.8.26
>>> -- Found Editline: /usr/local/lib/libedit.so
>>> -- cb=TRUE c= val= foo=Change Dir: /home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-
>>> utils/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp
>>>
>>> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
>>> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
>>> CMakeFiles/cmTryCompileExec.dir/build
>>> gmake[1]: Entering directory `/home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-
>>> utils/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp'
>>> /usr/bin/cmake -E cmake_progress_report /home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-
>>> utils/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles 1
>>> Building CXX object CMakeFiles/cmTryCompileExec.dir/SystemVersion.cc.o
>>> /usr/bin/c++    -I/usr/local/include   -o 
>>> CMakeFiles/cmTryCompileExec.dir/SystemVersion.cc.o
>>> -c /hypertable/cmake/SystemVersion.cc
>>> Linking CXX executable cmTryCompileExec
>>> /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt
>>> --verbose=1
>>> /usr/bin/c++        -fPIC CMakeFiles/cmTryCompileExec.dir/SystemVersion.cc.o
>>>  -o cmTryCompileExec -rdynamic -ldl /usr/local/lib/libsigar-amd64-linux.so
>>> -ldl
>>> gmake[1]: Leaving directory `/home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-
>>> utils/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp'
>>>
>>> -- Found SIGAR: /usr/local/lib/libsigar-amd64-linux.so;dl
>>> -- Operating System: Red Hat_Enterprise Linux 6
>>> -- Found RE2: /usr/local/lib/libre2.so
>>> --        version: 0.0.0
>>> -- Found Snappy: /usr/local/lib/libsnappy.so
>>> --        version: 0.0.0
>>> -- Found rrdtool in /usr/bin
>>> -- Found cronolog in /usr/local/sbin
>>> -- Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
>>> -- Not Found Tcmalloc: Tcmalloc_LIBRARY-NOTFOUND
>>> -- Not Found Jemalloc: Jemalloc_LIBRARY-NOTFOUND
>>> -- Not Found Hoard: Hoard_LIBRARY-NOTFOUND
>>> -- Did not find ceph libraries
>>> -- Ant: not found
>>> --     Javac: javac 1.6.0_31
>>> -- Found libevent: /usr/lib64/libevent.so
>>> -- Thrift compiler/libraries NOT found. Thrift support will be disabled
>>> (127, /usr/local/include/thrift, /usr/local/lib/libthrift.so,
>>> /usr/local/lib/libthriftnb.so)
>>> -- Thrift for ruby not found. ThriftBroker support for ruby will be
>>> disabled
>>> -- PHP Thrift files not found. ThriftBroker support for php will be
>>> disabled
>>> -- Thrift for perl not found. ThriftBroker support for perl will be
>>> disabled
>>> -- Found thrift for python
>>> -- Java JNI not found. Legacy Hadoop support will be disabled.
>>> -- Copying PHP files into installation
>>> -- Copying Perl files into installation
>>> WARNING: /usr/lib64/libexpat.so is prelinked, RPMs may require --nomd5
>>> WARNING: /usr/lib64/libbz2.so is prelinked, RPMs may require --nomd5
>>> WARNING: /usr/lib64/libz.so is prelinked, RPMs may require --nomd5
>>> WARNING: /usr/lib64/libncurses.so is prelinked, RPMs may require --nomd5
>>> WARNING: /lib64/libgcc_s.so.1 is prelinked, RPMs may require --nomd5
>>> WARNING: /usr/lib64/libstdc++.so.6 is prelinked, RPMs may require --nomd5
>>> -- Configuring done
>>> -- Generating done
>>> -- Build files have been written to: /home/jack/Downloads/
>>> hypertable-master_src_0.9.7.8_modify_offset-limit/bin/src-utils
>>> CPack: Create package using TBZ2
>>> CPack: Install projects
>>> CPack: - Run preinstall target for: HYPERTABLE
>>> CPack Error: Problem running install command: /usr/bin/gmake "preinstall"
>>> Please check /home/jack/Downloads/hypertable-master_src_0.9.7.8_
>>> modify_offset-limit/bin/src-utils/_CPack_Packages/Linux/TBZ2/PreinstallOutput.log
>>> for errors
>>> CPack Error: Error when generating package: hypertable
>>>
>>> the error in /bin/src-utils/_CPack_Packages/Linux/TBZ2/PreinstallOutput.log
>>> as follows:
>>>
>>> [ 98%] Built target ht_write_test
>>> Linking CXX shared module libHyperPython.so
>>> /usr/bin/ld: cannot find -lHyperThrift
>>> collect2: ld returned 1 exit status
>>> gmake[2]: *** [src/cc/HyperPython/libHyperPython.so] Error 1
>>> gmake[1]: *** [src/cc/HyperPython/CMakeFiles/HyperPython.dir/all] Error
>>> 2
>>> gmake: *** [all] Error 2
>>>
>>> What can i do to fixed.Thank you for any advice.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Hypertable Development" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at http://groups.google.com/group/hypertable-dev.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Doug Judd
>> CEO, Hypertable Inc.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Hypertable Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/hypertable-dev.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Doug Judd
CEO, Hypertable Inc.

-- 
You received this message because you are subscribed to the Google Groups 
"Hypertable Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hypertable-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to