LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-29-2006, 05:55 AM   #1
webofunni
LQ Newbie
 
Registered: Jul 2006
Distribution: debian,mandriva,ubuntu
Posts: 15

Rep: Reputation: 0
open cobol installation problem


while installing the open cobol i got following error

checking for gmp.h
checking for gmp_rend in -lgmp ...no
configure:error:gmp 3 or later is required

but i had already installed gmp 4.2.1

why i am getting this configuration error
 
Old 07-29-2006, 06:33 AM   #2
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by webofunni
checking for gmp_rend in -lgmp ...no
i guess this is the error. you may have a new version of gmp but the gmp_rend function is no longer included. there are also other possible cause of this error. check your config.log. you may also consider posting the part of config.log most relevant to the error.
 
Old 07-30-2006, 09:56 AM   #3
webofunni
LQ Newbie
 
Registered: Jul 2006
Distribution: debian,mandriva,ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
friend i tried gmp 3.1.1 and i got open cobol configured but after the compilation of hello.cob when i run hello binary i got the error as shared object file libcob.so.1 but there is a libcob.so.1 in user/local/lib
how can i resolve this problem
 
Old 07-30-2006, 01:28 PM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
run ldconfig to refresh the cache.

do you still have newer version of gmp? if you still have the newer version of gmp. example if it's in /usr/lib, then what you must do is let the links, example libcob.so.1 redirect to the older gmp version in /usr/local/lib. then run ldconfig too.

if you want, you an also overwrite the previous install of gpm (overwrite the newer version). when installing the older version, append the argument '--prefix /dir' to ./configure. example, if the newer version is in /usr/lib/, then that must be './configure --prefix=/usr'

Edit: btw you need to make sure that '/usr/local/lib' is included in the file /etc/ld.so.conf before running ldconfig.

Last edited by konsolebox; 07-30-2006 at 04:55 PM.
 
Old 07-19-2007, 10:36 AM   #5
derive[x]
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
respueta :)

Quote:
Originally Posted by webofunni
while installing the open cobol i got following error

checking for gmp.h
checking for gmp_rend in -lgmp ...no
configure:error:gmp 3 or later is required

but i had already installed gmp 4.2.1

why i am getting this configuration error
sorry, but i don't speak (write) english

para instalar opencobol necesitas lo siguiente:

gmp-4.1.2 o superior,

libltdlX-dev

en mi caso yo baje gmp-4.2.1.tar.gz e instale libltdl3-dev,

ahora para hacer el ./configure tienes que cambiar algo, nose que es, pero es por que gmp_rand no esta en la version 4.2.1 y con una sentencia se soluciona esto, con la siguiente:


./configure CFLAGS=-D__gmp_rand=__gmpn_random

ahi se construye el make exitosamente,
despues un make install y eso es todo

cualquier cosa a mi correo, pastorius3@gmail.com
 
Old 07-24-2007, 10:04 PM   #6
Freezy
LQ Newbie
 
Registered: Mar 2003
Posts: 24

Rep: Reputation: 15
Fixed!

I had the very same problem. Although I do not speak Spanish, I tried what derive[x] suggested (./configure CFLAGS=-D__gmp_rand=__gmpn_random) and it solved the problem for me.

Gracias, derive[x]!
 
  


Reply

Tags
cobol, open


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
Open office 2.0.0-139.i586 installation problem????? arunvk Linux - Software 3 12-04-2005 09:13 PM
cobol thermite_1033 Linux - Software 4 12-18-2004 11:29 AM
differences+between+mainframe+cobol+and+AIX+cobol+data+type ssrividhya AIX 1 08-09-2004 09:13 AM
Cobol Complier JROCK1980 Programming 1 06-11-2004 05:23 AM
Cobol help jpc82 Programming 2 03-19-2004 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:19 AM.

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