Skip to content

Installing problems, it seems successful, but "jumanpp: command not found" #125

@Jiang-shiyu

Description

@Jiang-shiyu

After failing several times, I want to ask for helping.

This step seems successful.

idaa@ubuntu:~/Desktop/jumanpp-2.0.0-rc3/bld$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/Desktop/juman

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is Clang 10.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
2.0.0-rc3
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.a;-lpthread (found version "3.6.1") 
Detecting protobuf... TRUE
protobuf library: 3.6.1
protoc binary: /usr/bin/protoc
Using Protobuf-based components. Pass -DJPP_USE_PROTOBUF=OFF to disable.
-- Eigen3... OK

    Static feature generation:
        COMMAND cgtest02_codegen_binary cgtest02 Test02 /home/idaa/Desktop/jumanpp-2.0.0-rc3/bld/src/core/codegen/gen
        DEPENDS cgtest02_codegen_binary cg_2_spec.h
        OUTPUT /home/idaa/Desktop/jumanpp-2.0.0-rc3/bld/src/core/codegen/gen/cgtest02.cc /home/idaa/Desktop/jumanpp-2.0.0-rc3/bld/src/core/codegen/gen/cgtest02.h
        LIBS jpp_core
    

    Static feature generation:
        COMMAND jpp_jumandic_cg_codegen_binary jpp_jumandic_cg JumandicStatic /home/idaa/Desktop/jumanpp-2.0.0-rc3/bld/src/jumandic/gen
        DEPENDS jpp_jumandic_cg_codegen_binary shared/jumandic_spec.cc
        OUTPUT /home/idaa/Desktop/jumanpp-2.0.0-rc3/bld/src/jumandic/gen/jpp_jumandic_cg.cc /home/idaa/Desktop/jumanpp-2.0.0-rc3/bld/src/jumandic/gen/jpp_jumandic_cg.h
        LIBS jpp_jumandic_spec
    
/home/idaa/Desktop/jumanpp-2.0.0-rc3/bld/src/jumandic/gen
-- Configuring done
-- Generating done
-- Build files have been written to: /home/idaa/Desktop/jumanpp-2.0.0-rc3/bld

And this step also seems no problems.


idaa@ubuntu:~/Desktop/jumanpp-2.0.0-rc3/bld$ make install -j2

Scanning dependencies of target jpp_util
Scanning dependencies of target jpp_test_catch_main_lib
[  1%] Building CXX object src/testing/CMakeFiles/jpp_test_catch_main_lib.dir/catch_main.cc.o
[  1%] Building CXX object src/util/CMakeFiles/jpp_util.dir/mmap.cc.o
[  2%] Building CXX object src/util/CMakeFiles/jpp_util.dir/memory.cpp.o
[  2%] Building CXX object src/util/CMakeFiles/jpp_util.dir/logging.cpp.o
[  3%] Building CXX object src/util/CMakeFiles/jpp_util.dir/string_piece.cc.o
...
...
[  6%] Building CXX object src/util/CMakeFiles/jpp_util.dir/format.cc.o
[  7%] Building CXX object src/util/CMakeFiles/jpp_util.dir/parse_utils.cc.o
[  7%] Linking CXX static library libjpp_util.a
[  7%] Built target jpp_util
...
...
[ 27%] Linking CXX executable jpp_util_test
/usr/bin/ld: CMakeFiles/jpp_util_test.dir/mmap_test.cc.o: in function `____C_A_T_C_H____T_E_S_T____2()':
mmap_test.cc:(.text+0xc14): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
[ 27%] Built target jpp_util_test
...
...
[100%] Building CXX object src/jumandic/CMakeFiles/jpp_jumandic_tests.dir/shared/jumandic_debug_dump_test.cc.o
[100%] Linking CXX executable jpp_jumandic_tests
/usr/bin/ld: CMakeFiles/jpp_jumandic_tests.dir/shared/mini_dic_test.cc.o: in function `jumanpp::testing::TestEnv::TestEnv()':
mini_dic_test.cc:(.text._ZN7jumanpp7testing7TestEnvC2Ev[_ZN7jumanpp7testing7TestEnvC2Ev]+0x229): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
[100%] Built target jpp_jumandic_tests
Install the project...
-- Install configuration: "Release"
-- Installing: /home/idaa/Desktop/juman/bin/jumanpp
-- Installing: /home/idaa/Desktop/juman/libexec/jumanpp/jumandic.jppmdl
-- Installing: /home/idaa/Desktop/juman/libexec/jumanpp/jumandic.config

But finally, failed.

idaa@ubuntu:~/Desktop/jumanpp-2.0.0-rc3/bld$ jumanpp
jumanpp: command not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions