Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Compiler's error

  1. #1
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Compiler's error

    I tried to
    Code:
    make
    the uemacs 0.4.15 from github first time as regular user then as root. I get the same error
    Code:
    /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: cannot find -lcurses
    collect2: ld returned 1 exit status
    make: *** [em] Error 1
    The first human reaction is to say "you don't have libncurses installed". I have them installed, so no clue why it gives me this error.
    Why I cloned from github? Because openSUSE 11.4 does not include uemacs (micro emacs) in its repos. I found it on 11.3 and installed it on 11.3 some while ago, but it seems that they don't love it beginning with 11.4 (I checked and 12.1 doesn't have it).
    NB: I don't want to use uemacs just because Linus Torvalds uses it. I need it for some stuff.
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  2. #2
    Join Date
    Jun 2009
    Location
    Pennsylvania, USA
    Posts
    233

    Default Re: Compiler's error

    riderplus wrote:

    >
    > I tried to
    > Code:
    > --------------------
    > make
    > --------------------
    > the uemacs 0.4.15 from github first time as regular user then as root.
    > I get the same error
    > Code:
    > --------------------
    > /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld:
    > cannot find -lcurses
    > collect2: ld returned 1 exit status
    > make: *** [em] Error 1
    >
    > --------------------
    >
    > The first human reaction is to say "you don't have libncurses
    > installed". I have them installed, so no clue why it gives me this
    > error.
    > Why I cloned from github? Because openSUSE 11.4 does not include uemacs
    > (micro emacs) in its repos. I found it on 11.3 and installed it on 11.3
    > some while ago, but it seems that they don't love it beginning with 11.4
    > (I checked and 12.1 doesn't have it).
    > NB: I don't want to use uemacs just because Linus Torvalds uses it. I
    > need it for some stuff.
    >
    >


    Errors like this usually mean you need the -devel RPMs for those packages,
    so they can be found at link time, not just at run time.


  3. #3
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: Compiler's error

    I have ncurses devel and ncurses-utils installed.
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Compiler's error

    Am 27.12.2011 16:06, schrieb riderplus:
    >
    > I have ncurses devel and ncurses-utils installed.
    >
    >

    This will not help you since you get an error that -lcurses fails (not
    -lncurses).
    You need to find out where you can get libcurses.so or libcurses.a

    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.4 |
    nVidia ION | 3GB Ram

  5. #5
    Join Date
    Feb 2011
    Location
    127.0.0.1
    Posts
    472

    Default Re: Compiler's error

    I found the solution. Pretty easy-peasy.
    Code:
    $su
    #cd /lib
    #ln -s libncurses.so.6 libcurses.so
    #cd ~/uemacs
    #make
    #make install 
    #em
    That's it. It works as a charm now.
    Reliable + rider = RiDeR PlUs
    ...if you find this helpful, click on the star below...
    +-+ +-+
    |r| |+|
    +-+ +-+

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Compiler's error

    On 2011-12-27 16:06, riderplus wrote:
    >
    > I have ncurses devel and ncurses-utils installed.


    I think it looks for curses, not ncurses.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Compiler's error

    On 2011-12-27 15:26, riderplus wrote:
    >
    > I tried to
    > Code:


    Forgot to say: better ask in the programming forum here.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  8. #8
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Compiler's error

    Better still, correct the makefile to use -lncurses. That's a pretty old piece of software, curses has been obsolete for ages.

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Compiler's error

    On 2011-12-27 16:36, riderplus wrote:
    >
    > I found the soluti


    It comes in "termcap"

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,282

    Default Re: Compiler's error

    And to add to all the good advises above: never try to run make as root. It will not help and it will endanger your system.
    Henk van Velden

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •