Recently, due to work needs, several applications need to be developed on qvfb. So I had to switch to linux, which I was about to forget. Previously, only redhat9.0.0 was installed on my computer. Qvfb has been installed on it, and many problems have been encountered, and there is little information on the Internet. Due to the limited level, I do not know much about linux, so I turn...
Recently, due to work needs, several applications need to be developed on qvfb. So I have to switch to the linux
Previously, only red hat9.0.0 was installed on the computer. Qvfb has been installed on it, and many problems have been encountered, and there is little information on the Internet. Due to the limited level, I do not know much about linux, so I switched to ubuntu with many solutions.
I happened to have published ubuntu11.10. Simply install ubuntu11.10 directly.
The vm7 version on the machine seems to be unable to meet ubuntu11.10. seeing that netizens seem to have used vistual box to install this release version, I will follow suit.
After all, I installed ubuntu on a virtual machine, and the desktop has no network. Therefore, you must create a shared folder.
1. shared folders between virtualbox and ubuntu
1. install enhancements
Install Ubuntu, run Ubuntu, and log on. Select "Devices"-> "Install Guest Additions" from the VirtualBox menu )".
You will find an extra disc icon on the Ubuntu Desktop, which is automatically loaded to the file folder/media/cdom0 by default. Go to the command line terminal and enter:
Cd/media/cdom0
Sudo./VboxLinuxAdditions. run
Start to install the toolkit. After the installation is complete, you will be prompted to restart Ubuntu.
2. configure shared folders
After the restart, click "Devices"-> allocate data space (Shared Folders) menu to add a Shared folder. the fixed and temporary options refer to whether the folder is persistent. (It is best to create a fixed one !)
Share names can be any one you like, such as "share". try to use an English name.
3. Mount shared folders
Re-enter the virtual Ubuntu and enter the following in the command line terminal:
Sudo mkdir/mnt/shared
Sudo mount-t vboxsf share/mnt/shared
"Share" is the name of the previously created shared document folder. OK. Now Ubuntu and the host can upload documents to each other.
If you do not want to manually mount each time, you can add
Share/mnt/shared vboxsf rw, gid = 100, uid = 1000, auto 0 0
This enables automatic mounting.
4. run the following command to uninstall the SDK:
Sudo umount-f/mnt/shared
The name of the shared folder must not be the same as that of the Mount point. For example, the above Mount point is/mnt/shared. if the name of the shared folder is also shared, the following error message will appear during mounting.
/Sbin/mount. vboxsf: mounting failed with the error: Protocol error
2. install qvfb.
Download the installation package qvfb-1.1.tar.gz (available in CSDN resources)
Decompress and start installation.
Install the three steps:
1. configure
The first problem encountered was: configure: error: C ++ preprocessor "/lib/cpp" fails sanity check
The solution is sudo apt-get install build-essential.
The second problem is tricky. That is: Can't find X except des. Please check your installation and add the correct paths!
The online saying is that xlibs-dev can be installed, but this package is not found in the unbuntu package resource search.
The network power is so powerful that I can find a solution that replaces xlibs-dev with xorg-dev.
Sudo apt-get install xorg-dev
Next we will encounter the third problem: Qt (> = Qt 3.0.3) (headers and libraries) not found. Please check your installation!
The reason is that the installation header file and library of qt cannot be found.
This is also a better solution: sudo apt-get install libqt3-headers libqt3-mt-dev
We try again./configure
However, the problem still persists. the error message is still Qt (> = Qt 3.0.3) (headers and libraries) not found. Please check your installation!
Why? we didn't specify the path of the header file and library.
We went to/usr/lib/and found a sub-folder qt3.
SO !!
. /Configure -- prefix =/usr/-- with-qt-dir =/usr/lib/qt3/-- with-qt-primary des =/usr/include/qt3 -- with-qt- libraries =/usr/lib/qt/
2. make
3. make install
Success ~~~ Thank you !! Thank you for the strength of the network!
Author fzu_dianzi