Linux post-installation software Installation

Source: Internet
Author: User
Tags install php posix

1, need to open daytime service when learning Network programming

Ubuntu default does not turn on Daytime service, so you need to open it manually and open it for

sudo apt-get install xinetd

VIM Daytime and Will TCP and the UDP in the Daytime=no Change into Daytime=yes

Restart Xientd : /etc/init.d/xientd Restart

2, perfect man manual content, part of the Pthread function is not included

$sudo Apt-get Install Glibc-doc

$sudo apt-get Install Manpages-posix Manpages-posix-dev

3, install Byobu, realize terminal multiplexing

Note: When I select ubuntu.uestc.edu.cn source without the software, select the source of Aliyun or 163

sudo apt-get install Byobu

4, install Ubuntu-tweak, clean up the system garbage add Source:

sudo apt-add-repository Ppa:tualatrix/ppa

sudo apt-get update

sudo apt-get install Ubuntu-tweak

5, install AB

sudo apt-get install apache2-utils

6, installing the UMBRELLO,UML Class Diagram tool

sudo apt-get install Umbrello

7, install boost

Pre-preparation: In boost, other libraries are used, so in order to use the corresponding functions in boost, you need to install a library that may be missing from the system first

Apt-get Install Mpi-default-dev #安装mpi库

Apt-get Install Libicu-dev #支持正则表达式的UNICODE字符集

Apt-get Install Python-dev #需要python的话

Apt-get Install Libbz2-dev #如果编译出现错误: Bzlib.h:no such file or directory

Once the library is installed, you can compile the boost library. Unzip the boost_1_49_0.tar.bz2, get/boost_1_49_0, and switch the current working directory to this folder.

./bootstrap.sh

To generate the Bjam, the above command can be provided with various options, specifically refer to the Help documentation:./bootstrap.sh--help. Where the--prefix parameter, you can specify the installation path, if not with the--prefix parameter (recommended), the default path is/usr/local/include and/usr/local/lib, respectively, storing the header files and various libraries. Once executed, Bjam will be generated and the existing script will be automatically backed up. Note that boost 1.49 will generate two files Bjam and B2 in the current directory, both of which are the same, so the next steps can be performed with either of these two.

Using MPI; #如果需要MPI功能, you need to add the end of the/tools/build/v2/user-config.jam file

The next step is to compile the source code with the generated Bjam script.

./b2-a-shave_icu=1 #-a parameter, representing RECOMPILE,-shave_icu=1 rep support Unicode/icu

Note that this is all compiled. Of course, you can also choose to compile only one part, option--with-<library> only compile the specified library, such as input--with-regex only compile the Regex library. boost1.49 full compilation, in the author intel®core™2 Duo CPU T5750 @ 2.00ghzx2, 2G DDR2 memory on the old machine, using the above options, half an hour is almost. This is a time to bear. All compiled and installed, psychologically feel comfortable. ^_^

Some of the common parameters of Bjam are listed below:

--build-dir=<builddir> The compiled temporary files will be placed in the BuildDir (this is a good management, you can delete it after compiling)
--stagedir=<stagedir> The path that holds the compiled library file, which is the default stage
--build-type=complete

Compile all versions, or only a small subset of the versions will be compiled, exactly equivalent to:

Variant=release, threading=multi;link=shared|static;runtime-link=shared

Variant=debug|release Decide what version to compile (Debug or release?)
Link=static|shared Decide whether to use a static library or a dynamic library
Threading=single|multi Decide whether to use single-threaded or multi-line libraries
Runtime-link=static|shared Decide whether to have a static or dynamic link C/S standard library
--with-<library> Compiles only the specified libraries, such as input--with-regex, and compiles only the Regex library.
--show-libraries Display the library names that need to be compiled

Once the compilation is complete, install the header file and the generated library into the specified path (--prefix)

./B2 Install

8, installing goldendict and dictionaries

Installing using Software Management Center

Download the dictionary at www.babylon.com/

9, install MySQL

sudo apt-get install mysql-server mysql-client

10, install PHP

http://php.net/manual/zh/install.unix.nginx.php

Linux post-installation software Installation

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.