Install Ubuntu with VMware in MACOSX

Source: Internet
Author: User
Recently, I used C ++ to write data to the database system. The memory leakage is very serious and I want to install the memory detection tool valgrind. However, this is not quite supported by my MACOSX10.6. In addition, there are some other reasons, I decided to install Ubuntu on MAC .... What is the process of installing Valgrind? I have just installed Ubuntu and Valgrind is not ready yet. It is the same as installing it on mac... Let's talk about it later: P (subsequent: Valgrind installation process is at the end of this article)

Recently, I used C ++ to write data to the database system. The memory leakage is very serious and I want to install the memory detection tool valgrind. However, this is not supported by my mac OS X 10.6. In addition, there are some other reasons, I decided to install Ubuntu on MAC .... What is the process of installing Valgrind? I have just installed Ubuntu and Valgrind is not ready yet. It is the same as installing it on mac... Let's talk about it later: P (the subsequent installation process of Valgrind is at the end of this article)

Install Ubuntu with VMware on mac OS X:
1. Download and install Vmware Fusion. You can download it from the official website.
The installation is simple, just step by step.


2. then download the ubuntu-10.10-desktop-i386.iso http://www.ubuntu.com/?top/get-ubuntu/download. A. iso image file is downloaded. Because the mac system uses the image file as the installation program by default, you can skip the steps of the virtual optical drive in windows ~

3. then go to the Installed VMware, Home Page-> install Windows or other operating systems in the new virtual machine-> do not use the CD to continue-> use the operating system to install the CD image file, in the file dialog box, select the downloaded Ubuntu ISO file, enter the password, select the read/write mode, and click Finish to automatically start the installation.

4. The usage of Ubuntu is described below.
1) in the upper left corner of the command line window, choose Applications> Accessories> Terminal. It is very convenient to install some built-in programs, such as Java or C ++ compilers. If you directly enter javac, the system will automatically prompt you with the name of the package you can install and the complete command line syntax, you can download and install the SDK automatically by following the instructions. C ++ seems to have to install g ++, gcc, yacc, and lex.

2) because it is Linux, some installation requires the root permission. The command for entering the root permission is su root, and the command for modifying the initial password is sudo passwd root.

3) File Communication. After Ubuntu is installed, it is essentially two systems separated from MAC. There are many ways to share files between them, most of which require network or local area network. Here is a simple method that does not require a network: USB flash disk. Haha, When you insert a USB flash drive, the system will ask you if you want to connect to MAC or Linux. You just need to connect two different machines. copy and paste them ~ Anyway, I don't think it is troublesome if the file is not large. It is annoying to use a USB flash drive to restart the system back and forth. This is a virtual one that does not need to be restarted.

PS: I think Ubuntu is quite useful ~ We have used the best Linux ~

Valgrind Installation Process
1. Go to http://valgrind.org/downloads/current.html on the official website and click "decompress.
2. Run the command to enter the decompressed folder, enter the./configure command, make command, make check Command, and make install command. If make install cannot be used, especially if the output with errors fails to be created, you should not have the root permission. Enter the su root login permission, and then enter make install again ~
3. Finished ~
4. If Valgrind is used to run the program, the following error occurs:
Valgrind: Fatal error at startup: a function redirection
Valgrind: which is mandatory for this platform-tool combination
Valgrind: cannot be set up. Details of the redirection are:
Valgrind:
Valgrind: A must-be-redirected function
Valgrind: whose name matches the pattern: index
Valgrind: in an object with soname matching: ld-linux.so.2
Valgrind: was not found whilst processing
Valgrind: symbols from the object with soname: ld-linux.so.2
Install the Ubuntu ibc6-dbg package to solve the problem, in the command line to execute sudo apt-get install libc6-dbg
This error occurs because the strlen check is called during execution to avoid errors in the tool. valgrind rejects execution if the function cannot be found at the beginning.

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.