The system is mac os 10.13.1. Since it is beyond 10.9, I followed the libstdc++ installation instruction.
The first problem I met is that uninstall cannot be done since the packages have dependencies on each other. I solve this by using uninstall --ignore-dependencies. But in the first trial of install --build-from-source, I met a problem as follows.
Do anyone know what causes this problem. And it asks me to choose an action, what should I do further? Thanks!
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/snappy/1.1.7_1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
-- The C compiler identification is AppleClang 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -- broken
CMake Error at /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /tmp/snappy-20190605-63662-1u9qf5s/snappy-1.1.7/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/Homebrew/Library/Homebrew/shims/mac/super/gmake cmTC_5b4ae/fast
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_5b4ae.dir/build.make CMakeFiles/cmTC_5b4ae.dir/build
Building C object CMakeFiles/cmTC_5b4ae.dir/testCCompiler.c.o
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -stdlib=libstdc++ -o CMakeFiles/cmTC_5b4ae.dir/testCCompiler.c.o -c /tmp/snappy-20190605-63662-1u9qf5s/snappy-1.1.7/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_5b4ae
/usr/local/Cellar/cmake/3.14.5/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5b4ae.dir/link.txt --verbose=1
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -stdlib=libstdc++ -Wl,-search_paths_first -Wl,-headerpad_max_install_names -stdlib=libstdc++ -lstdc++ CMakeFiles/cmTC_5b4ae.dir/testCCompiler.c.o -o cmTC_5b4ae
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_5b4ae] Error 1
make: *** [cmTC_5b4ae/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/tmp/snappy-20190605-63662-1u9qf5s/snappy-1.1.7/CMakeFiles/CMakeOutput.log".
See also "/tmp/snappy-20190605-63662-1u9qf5s/snappy-1.1.7/CMakeFiles/CMakeError.log".
/usr/bin/curl --version
/usr/libexec/java_home --xml --failfast
/usr/libexec/java_home --xml --failfast
/usr/local/Homebrew/Library/Homebrew/debrew.rb:13:in `raise'
BuildError: Failed executing: cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/snappy/1.1.7_1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action:
It seems that it is a cmake error. In addition, I cannot use cmake command. Does this mean that I do not have cmake installed?