json2avro icon indicating copy to clipboard operation
json2avro copied to clipboard

Cannot install it on Ubuntu 20

Open ttrading opened this issue 3 years ago • 2 comments

Can you please provide the instructions to compile after cloning the project via git. I am probably doing something wrong with mine:

root@ip-ccc-cc-cc-ccc:~/downloads/json2avro/avro-c/build# cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:20 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/root/downloads/json2avro/avro-c/build/CMakeFiles/CMakeOutput.log".
See also "/root/downloads/json2avro/avro-c/build/CMakeFiles/CMakeError.log".

ttrading avatar Mar 31 '21 16:03 ttrading

Try sudo apt-get install g++ ?

grisha avatar Mar 31 '21 16:03 grisha

Now this happened:

root@ip-XXX-XXXX-XXX:~/downloads/json2avro/avro-c/build# cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Disabled deflate codec. zlib not found.
-- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
Disabled snappy codec. libsnappy not found or zlib not found.
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Disabled lzma codec. liblzma not found.
CMake Warning (dev) at CMakeLists.txt:166 (set):
  Policy CMP0053 is not set: Simplify variable reference and escape sequence
  evaluation.  Run "cmake --help-policy CMP0053" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  For input:

    '@ZLIB_PKG@ @LZMA_PKG@ @SNAPPY_PKG@'

  the old evaluation rules produce:

    '  '

  but the new evaluation rules produce:

    '@ZLIB_PKG@ @LZMA_PKG@ @SNAPPY_PKG@'

  Using the old result for compatibility since the policy is not set.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Searching for asciidoc...
CMake Warning at docs/CMakeLists.txt:51 (message):
  asciidoc not found.  HTML documentation will *NOT* be built.


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SNAPPY_LIBRARIES (ADVANCED)
    linked by target "avro-static" in directory /root/downloads/json2avro/avro-c/src
    linked by target "avro-shared" in directory /root/downloads/json2avro/avro-c/src
ZLIB_LIBRARY
    linked by target "avro-static" in directory /root/downloads/json2avro/avro-c/src
    linked by target "avro-shared" in directory /root/downloads/json2avro/avro-c/src

-- Configuring incomplete, errors occurred!
See also "/root/downloads/json2avro/avro-c/build/CMakeFiles/CMakeOutput.log".
See also "/root/downloads/json2avro/avro-c/build/CMakeFiles/CMakeError.log".

ttrading avatar Mar 31 '21 16:03 ttrading