Showing posts with label problem-shooting. Show all posts
Showing posts with label problem-shooting. Show all posts

Friday, September 7, 2012

Error: /usr/bin/ld: cannot find -lncurses

I was working with genometools with HMMER enabled. While compiling, I got the following error message:

$ make with-hmmer=yes threads=yes cairo=no
[check for HMMER3]
[build HMMER3]
[compile pdom.o]
[link libgenometools.a]
[link libgenometools.so]
[link skproto]
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [bin/skproto] Error 1

I checked that libncurses5 was already installed and updated. Anyway, I did
sudo apt-get install libncurses5-dev

again, but the error message was still there. Then I found a post (#23) on https://groups.google.com/group/android-building/tree/browse_frm/month/2010-10/6579583604439ab9?rnum=21&_done=/group/android-building/browse_frm/month/2010-10?&pli=1 and followed the suggestion and did 

sudo apt-get install lib32ncurses5-dev 

Now the error message is gone.

Sunday, July 8, 2012

Remote access ubuntu 11.10 from mac

http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10/



Remote VNC login to Ubuntu 11.10


Today I’ve installed Ubuntu 11.10 Oneiric Ocelot on my ASrock 100HT nettop. I’ve wanted to remotely control this box via VNC protocol.
My solution was x11vnc server, so I could share one one session between remote and physical access. I’ve found useful thread about x11vnc on Ubuntu 11.10 – I’ve just added some upstart magic to start x11vnc after lightdm.
First of all, I’ve installed x11vnc:
apt-get install x11vnc
Then, I’ve created /etc/init/x11vnc.conf file:
start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
end script
After restart, x11vnc shoud listen on vnc startard port – 5900.
This script is of course based on upstart event mechanism. Lightdm emits login-session-start event (you can find it in lightdm.conf), and we start x11vnc when this event is emited – that’s first line of x11vnc.conf file.



Then, here is a youtube video showing step by step how to use vnc viewer to connect to the ubuntu machine.
http://www.youtube.com/watch?v=GY75u6TthH4