Jump to content
  • Cmake install Ubuntu doesn't work


    Jairo Pescador
    • Main Category: Core / Mangos Daemon
      Sub-Category: Unknown
      Version: 22.x (Current Master Branch)

    Hello, i was trying to install in a Vbox with ubuntu server a copy of mangos one, i was following this blog but i wanted to replicate with one:
     

    But when i was trying to run the build command:

    make -j<# of CPUs assigned to your server>
    make -j<# of CPUs assigned to your server> install

    then some errors occrs:
     

     43%] Building C object dep/lualib/lua/CMakeFiles/lua_interpreter.dir/__/__/__/_deps/lua52-src/src/lua.c.o
    /home/mangos/mangos/one/build/_deps/lua52-src/src/lua.c:67:10: fatal error: readline/readline.h: No such file or directory
       67 | #include <readline/readline.h>
          |          ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    [ 43%] Linking C executable lua52_interpreter
    /usr/bin/ld: cannot find CMakeFiles/lua_interpreter.dir/__/__/__/_deps/lua52-src/src/lua.c.o: No such file or directory
    collect2: error: ld returned 1 exit status
    [ 43%] Built target revision_data.h
    [ 43%] Built target lua_interpreter
    [ 43%] Linking C executable lua52_compiler
    [ 43%] Built target loadlib
    /usr/bin/ld: cannot find -lreadline: No such file or directory



    i tried again to run the command:
     

    make -j 2 install --ignore-errors --keep-going


    But the output of the console was:

     

    -- Install configuration: "Release"
    CMake Error at dep/lualib/lua/cmake_install.cmake:60 (file):
      file INSTALL cannot find
      "/home/mangos/mangos/one/build/dep/lualib/lua/liblua52.so": No such file or
      directory.
    Call Stack (most recent call first):
      dep/lualib/cmake_install.cmake:47 (include)
      dep/cmake_install.cmake:57 (include)
      cmake_install.cmake:47 (include) 

     


    User Feedback

    Recommended Comments

    PargeLenis

    Posted

    You need to install readline library, since there have been changes in Eluna which require this library.

    sudo apt install libreadline-dev

     



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use