Showing posts with label Xmgrace. Show all posts
Showing posts with label Xmgrace. Show all posts

Monday, July 21, 2014

Encountering the pars.yacc:5426 error when installing Grace 5.1.23 on CentOS 5

I encountered Encountering the pars.yacc:5426: error: âlog2â undeclared here (not in a function) when installing Grace-5.1.23 on CentOS 5 when Installing Grace (xmgrace) on CentOS 5 and 6

I used gcc44 as the gcc compilers.
pars.yacc:5426: error: âlog2â undeclared here (not in a function)
make[1]: *** [pars.o] Error 1
make[1]: Leaving directory `/root/Downloads/grace-5.1.23/src'
make: *** [subdirs] Error 1

The only solution is to use Grace 5.1.22. It will compile nicely. 

Saturday, January 14, 2012

Installing Grace (xmgrace) on CentOS 5 and 6

For further information on what is Grace ( xmgrace ) and some notes during installation. Do read the blog entry
  1. Grace plotting tool for X Window System 
  2. Compiling Grace: checking for a Motif >= 1002 compatible API... no

For installing in a nutshell on CentOS 5 and CentOS 6. 

./configure --enable-grace-home=/opt/grace \
--with-extra-incpath=/usr/local/include:/opt/include \
--with-extra-ldpath=/usr/local/lib:/opt/lib
--prefix=/usr/local
--enable-grace-home=DIR      define Grace home dir [PREFIX/grace]
--with-extra-incpath=PATH    define extra include path (dir1:dir2:...) [none]
--with-extra-ldpath=PATH     define extra ld path (dir1:dir2:...) [none]



Compiling,
make

Testing
make tests

Installation
make install

Making links
make links