Code Monkey home page Code Monkey logo

Comments (6)

marcinsulikowski avatar marcinsulikowski commented on May 10, 2024

It says "Could NOT find Polonaise v0.3.0" when I run ./configure
I donot know where to find Polonaise to install it on my Redhat EL 6.5.

You don't need it to compile the code, so you can proceed safely.

The file sys/rusage.h is also not found. I google the problem, and try "yum install perl-BSD-Resource", which did not work.

If this didn't work try re-running cmake, eg. using:

make distclean
./configure

BTW, aren't you able to compile the code without this header? It is optional and it shouldn't break the compilation.

from lizardfs.

liqiangvip avatar liqiangvip commented on May 10, 2024

Thank you for your quick reply.
I will try later. I am busy installing Thrift which needs a lot of staff to install/upgrade first (boost, autoconf, automake, etc.)

from lizardfs.

marcinsulikowski avatar marcinsulikowski commented on May 10, 2024

Do you need Thrift to compile LizardFS? If yes, I warn you, that most probably you don't need this. Things like 'Polonaise v0.3.0' and Thrift are needed only when you need lizardfs-polonaise-server to be compiled, which is not needed to use the filesytem with the usual (eg. provided by FUSE) interface.

from lizardfs.

liqiangvip avatar liqiangvip commented on May 10, 2024

Thank you for the explaination. However, I got some errors if I just jump to the make step.
I follow your INSTALL instroductions:
create a build directory inside the source directory, enter the build directory. Then:

[root@mfs1 build]# cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/lizardfs
-- CMAKE_BUILD_TYPE: Release
-- CMAKE_INSTALL_PREFIX: /opt/lizardfs
-- DEFAULT_USER: mfs
-- DEFAULT_GROUP: mfs
-- ENABLE_WERROR: OFF
-- ENABLE_LIGHTMFS: OFF
-- ENABLE_DEBIAN_PATHS: OFF
-- ENABLE_UTILS: OFF
-- ENABLE_TESTS: OFF
-- ENABLE_DOCS: ON
-- ENABLE_EXIT_ON_USR1: OFF
-- THROW_INSTEAD_OF_ABORT: OFF
-- FUSE_LIBRARY: FUSE_LIBRARY-NOTFOUND
-- RT_LIBRARY: /usr/lib64/librt.so
-- a2x: A2X_BINARY-NOTFOUND
-- Boost version: 1.56.0
-- Found the following Boost libraries:
-- regex
-- thread
-- Boost version: 1.56.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- Could NOT find Thrift (missing: THRIFT_INCLUDE_DIR THRIFT_LIBRARY)
-- Could NOT find Thrift
-- If it's installed in a non-standard path, set THRIFT_ROOT variable
-- to point this path (cmake -DTHRIFT_ROOT=...)
-- Could NOT find Polonaise v0.3.0
-- If it's installed in a non-standard path, set Polonaise_DIR variable
-- to point this path (cmake -DPolonaise_DIR=...)
Some include files were not found: sys/rusage.h
CMake Warning at doc/CMakeLists.txt:2 (message):
Program 'a2x' not found, manpages won't be generated

-- CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA=/root/lizardfs-2.5.0/build/src/data/postinst
-- Configuring done
-- Generating done
-- Build files have been written to: /root/lizardfs-2.5.0/build
[root@mfs1 build]# make
Scanning dependencies of target crcutil
[ 1%] Building CXX object external/CMakeFiles/crcutil.dir/crcutil-1.0/code/multiword_64_64_gcc_amd64_asm.cc.o
In file included from /root/lizardfs-2.5.0/external/crcutil-1.0/code/multiword_64_64_gcc_amd64_asm.cc:43:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:590: warning: comma at end of enumerator list
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h: In member function ‘_Crc crcutil::GenericCrc<_Crc, _TableEntry, Word, kStride>::CrcBlockword(const void, size_t, const _Crc&) const’:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:356: warning: comma at end of enumerator list
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-gnu"
[ 2%] Building CXX object external/CMakeFiles/crcutil.dir/crcutil-1.0/code/multiword_64_64_cl_i386_mmx.cc.o
In file included from /root/lizardfs-2.5.0/external/crcutil-1.0/code/multiword_64_64_cl_i386_mmx.cc:18:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:590: warning: comma at end of enumerator list
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h: In member function ‘_Crc crcutil::GenericCrc<_Crc, _TableEntry, Word, kStride>::CrcBlockword(const void, size_t, const _Crc&) const’:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:356: warning: comma at end of enumerator list
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-gnu"
[ 3%] Building CXX object external/CMakeFiles/crcutil.dir/crcutil-1.0/code/multiword_64_64_gcc_i386_mmx.cc.o
In file included from /root/lizardfs-2.5.0/external/crcutil-1.0/code/multiword_64_64_gcc_i386_mmx.cc:17:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:590: warning: comma at end of enumerator list
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h: In member function ‘_Crc crcutil::GenericCrc<_Crc, _TableEntry, Word, kStride>::CrcBlockword(const void, size_t, const _Crc&) const’:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:356: warning: comma at end of enumerator list
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-gnu"
[ 4%] Building CXX object external/CMakeFiles/crcutil.dir/crcutil-1.0/code/multiword_64_64_intrinsic_i386_mmx.cc.o
In file included from /root/lizardfs-2.5.0/external/crcutil-1.0/code/multiword_64_64_intrinsic_i386_mmx.cc:17:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:590: warning: comma at end of enumerator list
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h: In member function ‘_Crc crcutil::GenericCrc<_Crc, _TableEntry, Word, kStride>::CrcBlockword(const void, size_t, const _Crc&) const’:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:356: warning: comma at end of enumerator list
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-gnu"
[ 5%] Building CXX object external/CMakeFiles/crcutil.dir/crcutil-1.0/code/multiword_128_64_gcc_amd64_sse2.cc.o
In file included from /root/lizardfs-2.5.0/external/crcutil-1.0/code/multiword_128_64_gcc_amd64_sse2.cc:26:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:590: warning: comma at end of enumerator list
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h: In member function ‘_Crc crcutil::GenericCrc<_Crc, _TableEntry, Word, kStride>::CrcBlockword(const void, size_t, const Crc&) const’:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/generic_crc.h:356: warning: comma at end of enumerator list
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-gnu"
[ 6%] Building CXX object external/CMakeFiles/crcutil.dir/crcutil-1.0/code/crc32c_sse4.cc.o
In file included from /root/lizardfs-2.5.0/external/crcutil-1.0/code/crc32c_sse4.cc:19:
/root/lizardfs-2.5.0/external/crcutil-1.0/code/crc32c_sse4.h:171: warning: comma at end of enumerator list
cc1plus: warning: unrecognized command line option "-Wno-gnu"
Linking CXX static library libcrcutil.a
[ 6%] Built target crcutil
Scanning dependencies of target mfscommon
[ 7%] Building CXX object src/common/CMakeFiles/mfscommon.dir/pcqueue.cc.o
[ 8%] Building CXX object src/common/CMakeFiles/mfscommon.dir/sockets.cc.o
[ 9%] Building CXX object src/common/CMakeFiles/mfscommon.dir/setup.cc.o
/root/lizardfs-2.5.0/src/common/setup.cc: In function ‘void prepareEnvironment()’:
/root/lizardfs-2.5.0/src/common/setup.cc:34: error: expected initializer before ‘:’ token
/root/lizardfs-2.5.0/src/common/setup.cc:37: error: expected primary-expression before ‘}’ token
/root/lizardfs-2.5.0/src/common/setup.cc:37: error: expected ‘;’ before ‘}’ token
/root/lizardfs-2.5.0/src/common/setup.cc:37: error: expected primary-expression before ‘}’ token
/root/lizardfs-2.5.0/src/common/setup.cc:37: error: expected ‘)’ before ‘}’ token
/root/lizardfs-2.5.0/src/common/setup.cc:37: error: expected primary-expression before ‘}’ token
/root/lizardfs-2.5.0/src/common/setup.cc:37: error: expected ‘;’ before ‘}’ token
/root/lizardfs-2.5.0/src/common/setup.cc:8: warning: unused variable ‘localeNames’
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-gnu"
make[2]: *
* [src/common/CMakeFiles/mfscommon.dir/setup.cc.o] Error 1
make[1]: *** [src/common/CMakeFiles/mfscommon.dir/all] Error 2
make: *** [all] Error 2
[root@mfs1 build]#

from lizardfs.

marcinsulikowski avatar marcinsulikowski commented on May 10, 2024

You should make sure that you have a working c++11 compiler.

from lizardfs.

liqiangvip avatar liqiangvip commented on May 10, 2024

Thank you very much. After I upgrade the gcc from v4.4.7 to v4.8.1, it works well to compile the code.

from lizardfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.