Ubuntu-14.04-desktop-amd64 install Beyond Compare, ia32-libs

Source: Internet
Author: User

A few days ago, Ubuntu 14.04 was finally released, and then a long-awaited system upgrade began.

I used to install Ubuntu with 32 bits. This time I wanted to start the new 64-bit era, so I installed Ubuntu 14.04 with 64 bits. However, after installing the system, you may find library or software package dependency problems when installing some software. Therefore, various search methods are used to solve the problem. Therefore, I wrote an article to summarize how to install the 32-bit software in a 64-bit system and how to solve the dependency of the deb package.

First, you need to install the 32-bit software in a 64-bit system with the support of some basic libraries (32-bit), such as libc6: i386. By default, 64-bit Ubuntu is installed with a 64-bit library or software using a software center or a new version, therefore, to install a 32-bit library or software, you need to make necessary settings to enable the system to support the software of the i386 architecture:

1. Open the terminal and run the dpkg command (dpkg -- help to view help) to add the architecture:


Dpkg -- add-architecture i386 // add support for the i386 architecture

Dpkg -- remove-architecture i386 // remove support for the i386 architecture


2. Install the basic 32-bit Library:

Enter the command in the terminal (you can also use the software package management tool ):

Sudo apt-get install gcc-multilib


3 download Beyond Compare (deb package), installation will report the lack of library ia32-libs error, so you need to first complete the installation of the ia32-libs,

Although I downloaded the amd64 version of the software, but still will rely on ia32-libs, may be 64-bit incomplete, huh;


4 install ia32-libs (: http://pkgs.org /):

Sudo dpkg-I ia32-libs_20140131_amd64.deb

After executing the above command, I found that the dependency between the software packages is not satisfied. The following software packages are missing (my computer is one of these ):

Lib32z1

Lib32ncurses5

Lib32asound2

Lib32v4l-0


Ps: After the above command is executed, although the installation fails, but it may cause problems in the installation of other software packages, it is best to clear it:

Sudo dpkg-r ia32-libs

The first two can be found directly in the new software package manager, but the other two do not!

Continue to download from http://pkgs.org/search (amd64 ).

Here I have to say that this website is really good. There are a lot of software packages, rpm and deb!


It was hard to download the package and encountered an old problem during installation: software package dependency!

Lib32asound2 depends on the software package libasound2 (= 1.0.25-3ubuntu3. 1 );

The software package on which the lib32v4l-0 depends is libv4l-0 (= 0.8.8-3 );


That is to say, the 32-bit software package is dependent on the 64-bit software package. We found that both 64-bit software packages have been installed through the new search, but the version is too high! Both 32-bit software packages depend on a specific version (= ).


At this time, I first want to try it by force installation, that is, ignore the dependency first:

I used to ignore the dependent version. For other options, run the following command: dpkg -- force-help.

Sudo dpkg-I -- force-depends-version lib32asound2_1.0.25-3ubuntu3.1_amd64.deb


This can indeed be installed, but a broken software package is prompted when the new management is used. This may cause Installation Problems of other software packages. It seems that this method of force installation is not desirable, you can only find other methods!


Since a high version has been installed and the dependency between the high version has been written to replace the previous version, the internal implementation of the library should be compatible. So try to modify the deb software package.


First, you want to extract the control file under debian in the deb package through the archive manager, modify the file through vi or gedit, and then replace the original file. However, you cannot add files to the deb package through the archive manager. It seems that you need to use the deb packaging tool.

After searching, you can use the dpkg-deb command to simply modify and re-package the package.

Other knowledge about deb packaging: http://www.startos.com/ubuntu/tips/2010122417734.html


Modify the downloaded deb package and change = in the dependency field of the control file under debian in the deb package to> =:

Dpkg-deb -- help // view Command help

1. decompress the files in the deb package:

Dpkg-deb-x lib32asound2_1.0.25-3ubuntu3.1_amd64.deb deb;

2. decompress the control information in the deb package:

Cd deb

Dpkg-deb-e ../lib32asound2_1.0.25-3ubuntu3.1_amd64.deb

In this case, the deb Directory should have two directories: DEBIAN and usr.

3. Modify the DEBIAN/control file:

Original: Depends: libasound2 (= 1.0.25-3ubuntu3. 1), libc6-i386 (> = 2.7)

Change to: Depends: libasound2 (> = 1.0.25-3ubuntu3. 1), libc6-i386 (> = 2.7)

In this case, you can change the version of the software package:

Original: Version: 1.0.25-3ubuntu3. 1

Changed to: Version: 1.0.25-3ubuntu3.2 (custom)

4. Repackage:

Switch to the upper-level directory of the deb directory and execute the command (the software package name is customized later ):

Dpkg-deb-B deb lib32asound2_1.0.25-3ubuntu3.2_amd64.deb


After a small warning appears, the new deb package is ready!


Now, there is no problem with installing the new deb package:

Sudo dpkg-I lib32asound2_1.0.25-3ubuntu3.2_amd64.deb


Another software package lib32v4l-0 is the same step, the corresponding = changed to> = Re-package installation can be!


Finally run the above command again to complete the installation of the ia32-libs:

Sudo dpkg-I ia32-libs_20140131_amd64.deb


5. Finally, I entered the topic: Install Beyond Compare (required by programmers)

After the ia32-libs is installed, a command is done:

Sudo dpkg-I ia32-libs_20140131_amd64.deb


After installation, start bcompare and complete registration!



Bytes --------------------------------------------------------------------------------------------------------------------------

Attachment: Beyond Compare and ia32-libs (contains the registration code, which is not modified in original under the ia32-libs directory)

Bcompare: http://pan.baidu.com/s/1c0kXh0c

Ia32-libs: http://pan.baidu.com/s/1jGDRk0I




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.