libbz2.a,libz.so cause tokyocabinet Make failure problem Solving method
A recent whim, decided to install an Ubuntu 9.10 Live CD for programming development. I didn't think Wbui.exe was a convenient thing, if you have unfortunately chosen the Simplified Chinese before installation ~ ~ ~ ~ ~ Oh, sorry, slowly, it will be slow to connect to foreign countries, for your well-intentioned download Chinese dependent package (if your home has already fiber i
A tt server has been built over the past two days. It is a cache server written in Japan. The performance is said to be much higher than that of memcached. The specific parameters are unknown.
The first task of the past two days is to build a Linux system. The main reason is that the Linux system is too weak.
1. install it on your own under the root account. The installation is smooth, and everything is okay. It is actually the most basic installation, so there will be no problems.
2. It i
Install BZIP2The order is as follows:
The code is as follows:
Make-f Makefile-libbz2_so
Make
Make install
CP Bzip2-shared/bin/bzip2
Ln-s libbz2.so.1.0 libbz2.so
Cp-a libbz2.so*/lib
Rm/lib/libbz2.so
Ln-s.. /.. /lib/libbz2.so.1.0/usr/lib/
libc6-dev-y
Apt-get install-y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev LLVM
Apt-get upgrade gcc g++-y
#Set the maximum number of open files to 10000 or greater for your OS
Ulimit-n 65535
#TODO: Should really just open a few ports.
Iptables-i INPUT 1-j ACCEPT
Sysctl Vm.overcommit_memory=1
##################
# Install Docker
mkdir $HOME/tmp
Cd/tmp
wget-qo-
#TODO: Install on Boot
Nohup Docker daemon-g/da
organized?
/Source/
/Source/restybuddy
After installing the system, set the root permission
Set root Account
Sudo passwd root # Set the root password
Su-root # Switch to root
Replace the nearest source of the server
Cp/etc/apt/sources. list/etc/apt/sources. list. bak
Vim/etc/apt/sources. list
Check which country you belong to and replace the fastest source. This will make updates faster.
Update Server time (different time zones can be changed by yourself)
Rm-rf/etc/localtime
Ln-s/usr/share/zone
be faster
Update server time (there are different time zones that can be changed by themselves)
Rm-rf/etc/localtime
Ln-s/usr/share/zoneinfo/asia/shanghai/etc/localtime
Modify System Time
Apt-get install-y Ntpdate
Ntpdate-u pool.ntp.org
Date
Upgrading system Components
Apt-get Update
Apt-get autoremove-y
Apt-get-fy Install
Apt-get install-y build-essential gcc g++ make
For packages in build-essential gcc g++ make automake autoconf re2c wget cron bzip2 libzip-dev libc6-dev file rccon
Reproduced in the original text to: http://www.cnblogs.com/jackluo/p/3416648.html
First you need to install the Alien tool: http://ftp.de.debian.org/debian/pool/main/a/alien/
[root@localhost tmp] #tar zxvf alien_8.88.tar.gz
[root@localhost alien] #perl makefile.pl
[root@localhost Alien] #make
[root@localhost alien] #make instal
[root@localhost alien] #yum-y install rpm-build
[ Root@master downloads]# alien-r libbz2-dev_1.0.6-5_i386.deb
Libavutil-dev libavfor Mat-devsudo apt-get Install Libxtst-dev libeb16-dev zlib1g-dev libbz2-dev liblzo2-dev Libtiff5-devThen download the latest source code:CD ~git clone Https://github.com/goldendict/goldendict.gitGo to the Godendict directory and start compiling:CD GoldendictqmakemakeFinally, install the compiled binaries:sudo make installAfter completion, Goldendict's main program is located in the/usr/local/bin directory, which can then be manua
installation Pcrewget http://fossies.org/linux/misc/pcre-8.39.tar.gzTAR-ZXVF pcre-8.39.tar.gzCD pcre-8.39./configure--prefix=/opt/pcre-8.39--enable-utf8Make make instal6. Download the Build and install Curlwget https://curl.haxx.se/download/curl-7.51.0.tar.gzTar zxvf curl-7.51.0.tar.gzCD curl-7.51.0./configure--prefix=/opt/curl-7.51.0Make make installExport Path=/opt/curl-7.51.0/bin: $PATHExport Path=/opt/r/bin: $PATHSource/etc/profile7. Update link Lib library and path pathEcho/opt/xz-5.2.2/
/MakeMake installCD ../
Note: When TC is installed for configure, The libbz2 package may be missing and must be installed first.
Sudo apt-Get install checkinstall build-essential libbz2-dev(Under Ubuntu)
Ii. Preparations
View the queue service program help:
Httpsqs-H
-L IP address of the -P -X -T -D run as a daemon-H: Show this help
Example:
Http sqs-D-P 1218-x/data0/search/queue
Terminate proces
libavutil-dev libavformat-devsudo apt-get install libxtst-dev libeb16-dev zlib1g-dev libbz2-dev liblzo2-dev libtiff5-dev
Then download the latest source code:
12
cd ~git clone https://github.com/goldendict/goldendict.git
Go to the godendict directory and start compiling:
123
cd goldendictqmakemake
Finally, install the compiled binary file:
1
sudo make install
After that, the master program o
bin.v2/libs/iostreams/build/gcc-4.8.5/release/threading-multi/libboost_iostreams.so.1.64.0 /USR/BIN/LD:/usr/local/lib/libbz2.a (BZLIB.O): Relocation r_x86_64_32s against ' bz2_crc32table ' can not is used when Maki ng a shared object; Recompile with-fpic /usr/local/lib/libbz2.a:error adding Symbols:bad value Collect2:error:ld returned 1 exit St ATUs "g++"-o "bin.v2/libs/iostreams/build/gcc-4.8.5/release
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.