Ubuntu Link Errors

90 views
Skip to first unread message

Com1 Software

unread,
Apr 2, 2011, 4:49:31 PM4/2/11
to Harbour Users
Hello All,

I have installed harbour_2.0.0-1_i386.deb on my Ubuntu VM and it all
goes very well. I am looking forward to using it however I have run
into a link problem when I try to compile a hello world program.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

com1software@com1software-VirtualBox:~$ hbmk2 hello
hbmk2: Processing configuration: /usr/bin/hbmk.cfg
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'hello.prg'...
Lines 4, Functions/Procedures 1
Generating C source output to 'hello.c'... Done.
/usr/bin/ld: cannot find -lgpm
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc hello.o hbmk_je9j1g.o -Wl,--start-group -lhbcplr -lhbdebug -lgpm
-lharbour -Wl,--end-group -ohello -L/usr/lib/harbour
com1software@com1software-VirtualBox:~$


I saw the this thread on the Make issue on Ubuntu 10.10 (Maverick
Meerkat) and wondered if it was related or am I doing something
wrong?

http://groups.google.com/group/harbour-users/browse_thread/thread/8c1b9b217ff176ab/ad7ddb2f4956f280?lnk=gst&q=ubuntu#ad7ddb2f4956f280

Thanks
Dave

Alain Aupeix

unread,
Apr 2, 2011, 5:11:21 PM4/2/11
to harbou...@googlegroups.com
Le 02/04/2011 22:49, Com1 Software a �crit :

> Hello All,
>
> I have installed harbour_2.0.0-1_i386.deb on my Ubuntu VM and it all
> goes very well. I am looking forward to using it however I have run
> into a link problem when I try to compile a hello world program.
>
> To run a command as administrator (user "root"), use "sudo<command>".
> See "man sudo_root" for details.
>
> com1software@com1software-VirtualBox:~$ hbmk2 hello
> hbmk2: Processing configuration: /usr/bin/hbmk.cfg
> Harbour 2.0.0 (Rev. 13372)
> Copyright (c) 1999-2010, http://www.harbour-project.org/
> Compiling 'hello.prg'...
> Lines 4, Functions/Procedures 1
> Generating C source output to 'hello.c'... Done.
> /usr/bin/ld: cannot find -lgpm
> collect2: ld returned 1 exit status
> hbmk2: Error: Running linker. 1
> gcc hello.o hbmk_je9j1g.o -Wl,--start-group -lhbcplr -lhbdebug -lgpm
> -lharbour -Wl,--end-group -ohello -L/usr/lib/harbour
> com1software@com1software-VirtualBox:~$
>
>
> I saw the this thread on the Make issue on Ubuntu 10.10 (Maverick
> Meerkat) and wondered if it was related or am I doing something
> wrong?
1) Verify if g++ is installed, if not install it.
2) launch the command : sudo ldconfig -v

On Ubuntu 10.04, if I remember, it does the trick

A+

marco bra

unread,
Apr 3, 2011, 5:36:53 PM4/3/11
to harbou...@googlegroups.com
Try to install the libgpm-dev libgpm2

Open a terminal from menu Applications→Accessories→Terminal and type
or copy and paste from here (a row a time, then press enter):

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install libgpm-dev libgpm2

2011/4/2 Alain Aupeix <alain....@wanadoo.fr>:

> --
> You received this message because you are subscribed to the Google
> Groups "Harbour Users" group.
> Unsubscribe: harbour-user...@googlegroups.com
> Web: http://groups.google.com/group/harbour-users
>

--
Linux Infinite Freedom

Com1 Software

unread,
Apr 4, 2011, 9:33:06 AM4/4/11
to Harbour Users
Works now!

Thank you very much!

On Apr 3, 5:36 pm, marco bra <marcobra.ubu...@gmail.com> wrote:
> Try to install the  libgpm-dev  libgpm2
>
> Open a terminal from menu Applications→Accessories→Terminal and type
> or copy and paste from here (a row a time, then press enter):
>
> sudo apt-get update
> sudo apt-get dist-upgrade
> sudo apt-get install libgpm-dev  libgpm2
>
> 2011/4/2 Alain Aupeix <alain.aup...@wanadoo.fr>:
>
>
>
> > Le 02/04/2011 22:49, Com1 Software a écrit :
>
> >> Hello All,
>
> >> I have installed harbour_2.0.0-1_i386.deb on my Ubuntu VM and it all
> >> goes very well. I am looking forward to using it however I have run
> >> into a link problem when I try to compile a hello world program.
>
> >> To run a command as administrator (user "root"), use "sudo<command>".
> >> See "man sudo_root" for details.
>
> >> com1software@com1software-VirtualBox:~$ hbmk2 hello
> >> hbmk2: Processing configuration: /usr/bin/hbmk.cfg
> >> Harbour 2.0.0 (Rev. 13372)
> >> Copyright (c) 1999-2010,http://www.harbour-project.org/
Reply all
Reply to author
Forward
0 new messages