LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2016, 03:51 PM   #1
lilzz
Member
 
Registered: Aug 2006
Posts: 73

Rep: Reputation: 15
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
 
Old 02-05-2016, 08:59 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,589

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
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
 
Old 02-06-2016, 04:48 AM   #3
tramsch
Member
 
Registered: May 2014
Distribution: Gentoo, RHEL, Mint
Posts: 35

Rep: Reputation: 6
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
 
Old 05-14-2021, 03:39 PM   #4
fchen0000
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
Use cmake

mkdir build
cd build
cmake ..
make
 
Old 05-15-2021, 04:51 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,578

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ (compile vs. make vs. build) wwnexc Programming 11 10-10-2011 01:38 PM
Oneiric is a lemon to me ! joboy Linux - Desktop 4 09-16-2011 12:55 AM
[SOLVED] Should i be looking to build/compile my own linux poly_s Linux - Software 13 09-11-2011 12:15 PM
How about Linux Lemon Award of the year Emmanuel_uk LQ Suggestions & Feedback 3 01-16-2007 02:41 PM
Looks Cool, but this Lemon stalls at every new turn... mysticsound Linux - Newbie 1 03-17-2005 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration