Thursday, February 5, 2015

To solve Network Manager crashes with libnl 3.2.25

Required package: git, gtk-doc-tools, libtool, dbus-1-doc, libdbus-glib-1-dev, gudev-1.0, uuid-dev

According to the link below:
https://mail.gnome.org/archives/networkmanager-list/2014-July/msg00090.html


If Network Manager crashes with libnl 3.2.25 library, it can be solved by:

1. Build and install libnl3
(Please refer to http://yfaney.blogspot.com/2015/01/how-to-compile-libnl-30-on-raspberry-pi.html)
*Note that you will need to configure your IP manually if Network Manager already crashes.

2. Download the Network Manager repository via git:
$ git clone git://anongit.freedesktop.org/NetworkManager/NetworkManager

3. Select the branch which is stable version such as 1.0.0
<Git Source Path>$ git checkout 1.0.0

4. Compile and install it
$ ./autogen.sh
$ make
$ sudo make install


How to sync git with a specific tag

While using source code from git, you might want to sync a specific version. Each version will be corresponding to a tag in git(e.g. 0.92 or 1.0.0), and you can sync git with a specific tag by using the command below:

<Git Source Path>$ git checkout <Tag Name>

Reference: http://stackoverflow.com/questions/791959/download-a-specific-tag-with-git

Friday, January 30, 2015

How to compile libnl 3.0 on Raspberry Pi

Required environment: Raspberry Pi, Raspbian
Required package: git, libtool, autoconf, bison, flex

0. If you have any packages you did not install, install them first.

$ sudo apt-get install git libtool autoconf bison flex

1. Download the source code through GIT

$ git clone https://github.com/tgraf/libnl.git


2. Run Autoconf using autogen.sh. Autoconf will automatically sets the compiling environment for Raspberry Pi(for ARM-EABI CPU)

$ ./autogen.sh


3. Configure

$ ./configure


4. Build it and install it

$ make

$ sudo make install


That's it!

You can also read this post in Korean from the link below:
http://yfaney.tistory.com/299

Reference: Netlink Library hompage(http://www.infradead.org/~tgr/libnl/doc/core.html)

This blog is to record the IT know-how for personal purpose.

This blog is to record the IT know-hows

- for example, how to install Raspberry Pi, how to compile Linux binary on Android, and etc...
- for personal purpose.


Anyone can read my post and follow it.