Solved

Compiling C++ in Fedora

Posted on 2009-06-30
4
1,259 Views
Last Modified: 2013-12-06

Hi there

I'm a complete newbie in Linux so please forigve me if this is a dumb quetion (as I suspect it is)

I'm having problems compiling an open source C++ project on Fedora. When I download and run the ./configure I eventually end up with.

.
.
.
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
./configure: line 15513: AX_CFLAGS_WARN_ALL: command not found
./configure: line 15514: AX_CXXFLAGS_WARN_ALL: command not found
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison
./configure: line 15784: AX_PROG_GPERF: command not found
checking trace option enabled... no
checking for getrusage... yes
checking time profiling enabled... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking forcing use of select... no
checking use pipes to communication between scheduler and dispatcher... no
./configure: line 16280: syntax error near unexpected token `1.39.0'
./configure: line 16280: `AX_BOOST_BASE(1.39.0)'

When I compiled the equivilant project in Windows I did need to install and update project references to Boost. I can see that this is related to boost but not sure why I would get a syntax error.

A few other things to note, the original source code in configure and configure.ac had references to boost 1.3.5 with the same compile errors (obviously with 1.3.5 in the error msg).

I have recently installed boost 1.3.9 and updated the source. Also note that when I tried to

 yum install boost

it reports I have 1.3.7 installed and that is the latest version. I did also try 1.3.7 inside the source code but I get the same problem. I just don't get why I would get a syntax error!

this is the code inside configure and configre.ac that throws the error

#BOOST
AX_BOOST_BASE(1.39.0)
AX_BOOST_THREAD

Any thoughts on where to go next would be great.
0
Comment
Question by:GillyTheTaffy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 8

Expert Comment

by:JIEXA
ID: 24744069
It seems that "./configure" script is broken.
0
 
LVL 18

Expert Comment

by:Jose Parrot
ID: 24780176
Did you checked $BOOST_ROOT environment variable?
Also, try AX_BOOST_BASE([1.33.1]) instead of AX_BOOST_BASE(1.33.1)

Jose
 
0
 
LVL 18

Expert Comment

by:Jose Parrot
ID: 24780185
Actuially, in your case, try AX_BOOST_BASE([1.39.0]) instead of AX_BOOST_BASE(1.39.0). The hint is on using [...].
Jose

0
 
LVL 1

Accepted Solution

by:
GillyTheTaffy earned 0 total points
ID: 24790377
Thanks for all the comments. It appeared there are lot of pre-requisites for building and even then I ran into more problems when running make. I managed to get some herlp off the Fedora Forum but in short, I needed to developer tools and developer libraries using yum. I'd figured that as I'd checked the developer/programming option during install these kind of dependencies would of been installed.

Anyhow, thanks again for the help
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question