Install the plotutils package in an unmaintained Ubuntu version

Source: Internet
Author: User
Ubuntu9.04 in the machine is no longer officially maintained. The software warehouse for this version has expired. In order to install new software from the warehouse, you need to change it to the maintained version, this means that the system is reinstalled, and a large number of software installed and configured have to be reinstalled, which is too time-consuming and laborious. Therefore, you have to stop installing software from the repository, and everything starts from the source code. The tool in plotutils can easily draw a graph. This software is available in ubuntu storage, but it is not maintained because of Ubuntu9.04.

Ubuntu 9.04 in the machine is no longer officially maintained. The software warehouse for this version has expired. to install new software from the warehouse, you need to replace it with the maintained version, this means that the system is reinstalled, and a large number of software installed and configured have to be reinstalled, which is too time-consuming and laborious. Therefore, you have to stop installing software from the repository, and everything starts from the source code.

The tool in plotutils can easily plot the graph, ubuntu warehouse has this software, but Because Ubuntu 9.04 is no longer maintained, only download and install from its home page (http://www.gnu.org/software/plotutils ). From the website login./configure, there is no error, and then run make, the error is returned:

Error: X11/Xaw/Label. h: No such file or directory

The header file Lablel is missing. h, the file belongs to the ubuntu libxaw7-dev package, but the package is not installed, also have to install from the source file, the package source file is part of x.org, you can, select X11R7.5/src/lib/libXaw-1.0.7.tar.gz download (version 1.0.5 not found), decompress, because the machine already has its running version (the running version includes the Binary Runtime Library, etc ), therefore, you do not need to compile and install the package. You only need to copy the include/X11/Xaw content in the decompressed folder to/usr/include/X11/xaw. then, go back to the decompressed directory of plotutils-2.6.tar.gz and execute make, the header file Lablel is not displayed. h, but another error occurs:

/Usr/bin/ld: cannot find-lXaw
Collect2: ld returned 1 exit status
Make [2]: *** [libplot. la] Error 1
Make [2]: Leaving directory '/.../plotutils-2.6/libplot'
Make [1]: *** [all-recursive] Error 1

The library file libXaw. xx cannot be found. view the files that involve Xaw in the/usr/lib folder as follows:

Lrwxrwxrwx 1 root 15 2010-01-17 16: 42 libXaw3d. so.6-> libXaw3d. so.6.1
-Rw-r -- 1 root 301400 libXaw3d. so.6.1
Lrwxrwxrwx 1 root 16 libXaw7.so. 7-> libXaw7.so. 7.0.0
-Rw-r -- 1 root 377480 libXaw7.so. 7.0.0
Lrwxrwxrwx 2 root 12 libXaw. so.7-> libXaw7.so. 7

Run $ ln libXaw. so.7 libXaw. so to get

Lrwxrwxrwx 2 root 12 libXaw. so-> libXaw7.so. 7

Go back to the decompressed directory of plotutils-2.6.tar.gz and run make. No error is reported, and then run make install.

Run the $ echo 1 2 2 1 | graph-T x test and report the following error:

Graph: error while loading shared libraries: libplot. so.2: cannot open shared object file: No such file or directory

Find libplot. so.2. in/usr/local/lib, set the environment variable LD_LIBRARY_PATH =/usr/local/lib. If it is invalid, run

$ Sudo cp libplot. so.2/usr/lib/

Then test graph.

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.