I want to install Google Log(C++) in my Ubuntu, but I met the problem:
/usr/bin/ld: //usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC.
The cause is that the
gflags is not compiled as shared libraries when installing.
Here is a solution.
Jump to gflags directory, and run
ccmake .. Change the
If you found that
ccmake is not found.
sudo apt install cmake-curses-gui
Then, jump back to
glog directory, run:
make -j`nproc` && sudo make install
I do recommend 1G/2G.
sudo fallocate -l 2G /swapfile
This post will cover how to configure a Linux computer to a router, which I have already tested with a standard server(Ubuntu 16.04 in ESXi) and Raspberry Pi 3.
The router will be able to provide a transparent network to its clients, and its user experience is much better than other common solutions, such as PAC shadowsocks, VPN etc.
This post will cover how to add a new disk, format it and then mount it under Linux.
This is my new hexo blog, I will later spend some time migrating all the contents from the old blog to this one.
After that is done, address of this blog will change to http://192217.space .
2017.3.1 update : Migration Done
puts "Hello World!"
This tutorial may help you
feel happy in the