cannot find -ltermcap 
Author Message
 cannot find -ltermcap

Hi,

Just been trying to fix my system after playing with sudo (don't do
it... its bad, ok?) and when I attempted to reinstall poplog, all
accoprding to the instructions for SuSE, all files are correct, all
shared objects /links to them are in place, I get this error:


[snip...]

/usr/i486-suse-linux/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status

[snip...]

Now rebuilding system images
relinking -- using /usr/local/poplog/v15.53a/pop/pop/poplink_cmnd
checking for newpop11
COULD NOT LINK NEWPOP11:
Try commenting out poplink_cmnd
OR
Try asking for help via comp.lang.pop or pop-forum AT cs.bham.ac.uk

lrwxrwxrwx    1 root     root           19 Apr 12 14:41
/usr/lib/libtermcap.so.2 -> libtermcap.so.2.0.8
-rwxr-xr-x    1 root     root        15067 Mar 23  2002
/usr/lib/libtermcap.so.2.0.8

lrwxrwxrwx    1 root     root           24 Apr 15 13:39
/lib/libtermcap.so.2 -> /usr/lib/libtermcap.so.2

and /etc/ld.so.conf points to *both* /usr/lib and /usr/lib/termcap

has anyone got any ideas why this error is comming up? I really need to
get poplog working ASAP, any help is grreatly appreciated.

dave.

--
=================================================
  The future of HTML mail is clearly > /dev/null.
              It's GNU/Linux, damnit!
=================================================



Sun, 02 Oct 2005 03:29:30 GMT  
 cannot find -ltermcap

Quote:
> Just been trying to fix my system after playing with sudo (don't do
> it... its bad, ok?) and when I attempted to reinstall poplog,

Does that mean that it all worked at some earlier stage?

Quote:
> all
> accoprding to the instructions for SuSE, all files are correct, all
> shared objects /links to them are in place,

I presume you were using this file

        http://www.cs.bham.ac.uk/research/poplog/linux-cd/Suse-Readme.txt

Quote:
> ...I get this error:


> [snip...]

> /usr/i486-suse-linux/bin/ld: cannot find -ltermcap
> collect2: ld returned 1 exit status

> [snip...]

> .# ll usr/lib/libterm*
> lrwxrwxrwx    1 root     root           19 Apr 12 14:41 /usr/lib/libtermcap.so.2 -> libtermcap.so.2.0.8
> -rwxr-xr-x    1 root     root        15067 Mar 23  2002 /usr/lib/libtermcap.so.2.0.8

That looks OK

 ll /lib/libterm*

Quote:
> lrwxrwxrwx    1 root     root           24 Apr 15 13:39  /lib/libtermcap.so.2 -> /usr/lib/libtermcap.so.2

That also looks OK.

I don't know anything about SuSE. Is it possible that you have to set
this environment variable?

        $LD_LIBRARY_PATH

If you've had some sort of crash maybe you have to reinstall libtermcap,
in case the file has been corrupted?

Does this command run without error:

        /usr/local/poplog/v15.53a/pop/pop/basepop11

If so, edit the file
        INSTALL_MOTIF_POPLOG
to omit these lines:

    ##### START of bit that may not work on Mandrake and some other systems
    ### Comment out the next few commands (up to ##### END) if you are
    ### running mandrake and installation does not work

    echo "relinking -- using $popsys/poplink_cmnd"

    cd $popsys
        ./poplink_cmnd

    echo "checking for newpop11"

    ls -l newpop11

    if ( -f newpop11 ) then
        echo "copying newpop11 to basepop11"
        cp newpop11 basepop11
        rm newpop11
    else
        echo "COULD NOT LINK NEWPOP11:"
        echo "Try commenting out poplink_cmnd"
        echo "OR"
        echo "Try asking for help via comp.lang.pop or pop-forum AT cs.bham.ac.uk"
        exit
    endif
        ##### END of bit that may not work on Mandrake

if that does not work, maybe someone else with more specific knowledge
will be able to help.

Aaron



Sun, 02 Oct 2005 04:28:30 GMT  
 cannot find -ltermcap

Quote:

> /usr/i486-suse-linux/bin/ld: cannot find -ltermcap

snip...

Quote:

> lrwxrwxrwx    1 root     root           19 Apr 12 14:41
> /usr/lib/libtermcap.so.2 -> libtermcap.so.2.0.8
> -rwxr-xr-x    1 root     root        15067 Mar 23  2002
> /usr/lib/libtermcap.so.2.0.8

The loader might be looking for a file called libtermcap.so, rather than
libtermcap.so.2.  You could try putting in a link from
/usr/lib/libtermcap.so to /usr/lib/libtermcap.so.2, i.e.,

ln -s /usr/lib/libtermcap.so.2 /usr/lib/libtermcap.so

Stephen Isard



Sun, 02 Oct 2005 17:55:32 GMT  
 cannot find -ltermcap
  > [snip]

Quote:
> Does this command run without error:

>    /usr/local/poplog/v15.53a/pop/pop/basepop11

> If so, edit the file
>    INSTALL_MOTIF_POPLOG
> to omit these lines:

>     ##### START of bit that may not work on Mandrake and some other systems
>     ### Comment out the next few commands (up to ##### END) if you are
>     ### running mandrake and installation does not work

>     echo "relinking -- using $popsys/poplink_cmnd"

>     cd $popsys
>         ./poplink_cmnd

>     echo "checking for newpop11"

>     ls -l newpop11

>     if ( -f newpop11 ) then
>         echo "copying newpop11 to basepop11"
>         cp newpop11 basepop11
>         rm newpop11
>     else
>         echo "COULD NOT LINK NEWPOP11:"
>         echo "Try commenting out poplink_cmnd"
>         echo "OR"
>         echo "Try asking for help via comp.lang.pop or pop-forum AT cs.bham.ac.uk"
>         exit
>     endif
>    ##### END of bit that may not work on Mandrake

> if that does not work, maybe someone else with more specific knowledge
> will be able to help.

> Aaron

Thanks for that, Aaron... you pointed me in the right direction, I
started by looking at what this bit of code was doing:
  >     cd $popsys
  >         ./poplink_cmnd

Then I tried to edit poplink_cmnd to fix the error (by including
-I/usr/lib/termcap), but soon enough I found out that the file gets
overwritten every time I run INSTALL_MOTIF_POPLOG, So I created a link
from /usr/lib/termcap/libtermcap.a to /usr/lib/libtermcap.a in order for
gcc to find the file, now it works.

Probably you should add that bit of advise in the readme files for
SuSE... :)

Thanks for the help again,

Dave.

--
=================================================
   The future of HTML mail is clearly > /dev/null.
               It's GNU/Linux, damnit!
=================================================



Sun, 02 Oct 2005 23:27:35 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Cannot find the right record using random read in TPS but can find in DBF

2. Python 1.4 build without -ltermcap

3. cannot find WordApplication object

4. Cannot find the right record using random read

5. Execute failed, Cannot find DLL component

6. ODBC.DLL cannot be found

7. Cannot find DLL...

8. Cannot Find DLL Component or Out of Memory???

9. error in C5PE cannot find d:\app\wmftxt.lib

10. Execute of ????.exe Failed, Cannot find DLL Component or Out Of Memory

11. Cannot find C4run.dll

12. Critical error - cannot find window handle?

 

 
Powered by phpBB® Forum Software