Installing gflags 12.04
Installing gflags 12.04
Manual package build (backport)
This is a very very verbose description - for anyone building a package for the first time.
1.
Install basic packages
to build software and packages: build-essential
2. Go to the source package (gflags) page at Launchpad:https://launchpad.net/ubuntu/+source/gflags
3. Unfold the section for "The Quantal Quetzal (supported) 2.0-1" version.
4. Locate the source package description file (.dsc extension). At the time of writing this ishttps://launchpad.net/ubuntu/+archive/primary/+files/gflags_2.0-1.dsc
5. Copy the link to your clipboard.
6. Open a terminal and download the source package using dget:
7. dget https://launchpad.net/ubuntu/+archive/primary/+files/gflags_2.0-1.dsc
This will fail the first time:
gpg: Signature made Thu 31 May 2012 14:48:41 CEST using RSA key ID 8AE09345
gpg: Can't check signature: public key not found
Validation FAILED!!
8. Install the required RSA key as in the error message above:
9. gpg --keyserver keyserver.ubuntu.com --recv-key 8AE09345
10. Configure the DPKG development scripts to use your GPG keyring:
11. echo 'DSCVERIFY_KEYRINGS="/etc/apt/trusted.gpg:~/.gnupg/pubring.gpg"' > ~/.devscripts
See Added key, but dget still shows "gpg: Can't check signature: public key not found" for why.
12. Run the earlier dget command again. This should now succeed.
13. Hop into the directory created:
14. cd gflags-2.0/
15. Try building the package.
16. debuild -uc -us
Explanation for the options: unsigned changes file, unsigned new .dsc file. As you are not redistributing the package, there's no need to sign anything.
This may fail due to missing build dependencies, e.g.:
dpkg-checkbuilddeps: Unmet build dependencies: debhelper
Note this is really system specific.
17. Install the build dependencies (satisfy all above from the output you get), e.g.:
18. sudo apt-get install debhelper
19. Try building the package again:
20. debuild -uc -us
21. One directory below, you'll find your packages, e.g.:
22. $ cd ..
23. $ ls -al *gflags*.deb
24. -rw-r--r-- 1 gert gert 108450 Jun 24 18:59 libgflags2_2.0-1_amd64.deb
25. -rw-r--r-- 1 gert gert 147590 Jun 24 18:59 libgflags-dev_2.0-1_amd64.deb
26. -rw-r--r-- 1 gert gert 14778 Jun 24 18:59 libgflags-doc_2.0-1_all.deb
27. Install them:
28. sudo dpkg -i *gflags*.deb
In case this fails because of binary dependencies not satisfied, run
sudo apt-get install -f
Done!
Original Source: http://askubuntu.com/questions/312173/installing-gflags-12-04
'Dababase' 카테고리의 다른 글
postgresql 9.3 on SpecVirt 작업 일지 (0) | 2016.02.05 |
---|---|
port forwarding (0) | 2016.02.02 |
examplie: test application for rocksdb compile (0) | 2015.07.18 |
Rocks DB 설치 on Ubuntu 12.04 LTS (0) | 2015.07.18 |
RocksDB Installation on Ubuntu 12.04 (0) | 2015.07.17 |