LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I compile and build lemon? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-compile-and-build-lemon-4175571551/)

lilzz 02-05-2016 03:51 PM

How do I compile and build lemon?
 
I follow the instructions
http://lemon.cs.elte.hu/trac/lemon/wiki/InstallLinux

1) Step into the root of the source directory.

$ cd lemon-x.y.z

2) Create a build subdirectory and step into it.

$ mkdir build
$ cd build

3) Perform system checks and create the makefiles.

$ cmake ..

4) Build LEMON.

$ make


when I type build, it says make: *** No targets specified and no makefile found. Stop.
Inside build folders

cmake CMakeFiles CPackConfig.cmake demo lemon tools
CMakeCache.txt contrib CPackSourceConfig.cmake doc test

John VV 02-05-2016 08:59 PM

i take it you do not know that you are supposed to replace "lemon-x.y.z"
with the REAL name of the folder

you do know what the commands are ?????

"cd" = change directory

"mkdir" = make directory

" mkdir build" = make the folder "build"

"cmake .." run cmake on the folder ONE UP from the build folder

tramsch 02-06-2016 04:48 AM

Hi lilzz,

I was not able to follow their instructions neither.

The cmake does not finish.

Code:

-- Found PythonInterp: /usr/bin/python (found version "2.7.6")
-- Found Wget: /usr/bin/wget 
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Found Ghostscript: /usr/bin/gs 
-- Could NOT find GLPK (missing:  GLPK_LIBRARY GLPK_INCLUDE_DIR GLPK_PROPER_VERSION_FOUND) (Required is at least version "4.33")
-- Could NOT find ILOG (missing:  ILOG_CPLEX_LIBRARY ILOG_CPLEX_INCLUDE_DIR)
-- Could NOT find COIN (missing:  COIN_INCLUDE_DIR COIN_CBC_LIBRARY COIN_CBC_SOLVER_LIBRARY COIN_CGL_LIBRARY COIN_CLP_LIBRARY COIN_COIN_UTILS_LIBRARY COIN_OSI_LIBRARY COIN_OSI_CBC_LIBRARY COIN_OSI_CLP_LIBRARY)
-- Could NOT find SOPLEX (missing:  SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long long
-- Check size of long long - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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 
-- Copy doc from source tree
-- Configuring incomplete, errors occurred!
See also "/home/florian/download/lemon-1.3.1/build/CMakeFiles/CMakeOutput.log".
See also "/home/florian/download/lemon-1.3.1/build/CMakeFiles/CMakeError.log".

Though I have no idea what LEMON actually is, these look like missing dependencies.
GLPK is probably "libglpk-dev", depending on your distribution, do you have similar cmake errors?

They have a "users" mailing list on the website, you should try to work the dependencies out and just ask there if you're stuck.

In general, your post lacks a lot of info, for the future, please remember to include your distribution and way more important the commands you actually entered and their feedback, not just a copy of the insructions...

BR
Florian

fchen0000 05-14-2021 03:39 PM

Use cmake
 
mkdir build
cd build
cmake ..
make

shruggy 05-15-2021 04:51 AM

To make this useless necrobump slightly more justifiable.

There is an unrelated software of the same name (the Lemon LALR(1) parser generator) which is packaged as lemon by most distributions. Because of that, the library in question (Library of Efficient Models and Optimization in Networks aka LEMON) is packaged as coin-or-lemon by Fedora and as liblemon by Debian. It's still packaged as lemon by OpenSUSE Science repo though.


All times are GMT -5. The time now is 06:05 PM.