Compile OpenOffice (4) in Ubuntu)

Source: Internet
Author: User

According to the prompt "compile OpenOffice (3) under Ubuntu", enter:./Bootstrap

Enter:

source LinuxX86Env.Set.sh

Or

source LinuxX86-64Env.Set.sh

Then you can make it !! I am using the sudo make command directly here!

Compilation errors:

####### Error 1:
Copy libgcc_s.so.1 to ../unxlngi6.pro/lib
/Bin/CP: cannot stat 'libgcc _ S. so.1 ': no such file or directory
Copy failed: Bad file descriptor at/Media/newdisk/OOO/ooo330_m20/solenv/bin/gccinstlib. pl line 53.
Dmake: Error Code 9, while making '../unxlngi6.pro/lib/libgcc_s.so.1'

1 module (s ):
External
Need (s) to be rebuilt

Reason (s ):

Attention: If you fix the errors in the above module (s) You may prolongue your the build issuing command:

Build -- all: External

Make: *** [all] Error 1

[Fix] Put libgcc_s.so.1 to the lib directory

####### Error 2:
Error :.. /.. /INC/UNO/lbnames. h: 67: 2: Error: # error "supported GCC majors are 2, 3 and 4 <= 4.4. unsupported GCC major version."
Dmake: Error Code 1, while making '.../unxlngi6.pro/SLO/logbridge. OBJ'

1 module (s ):
CPPU
Need (s) to be rebuilt

Reason (s ):

Attention: If you fix the errors in the above module (s) You may prolongue your the build issuing command:

Build -- all: CPPU

Make: *** [all] Error 1
This should be my GCC version does not meet the requirements, too high, higher than 4.5, through apt-cache search GCC find the version of the gcc-4.4, was overjoyed to install, however, the installation finds that the version is 4.4.5, and the compilation process still reports an error. if the version is 0.5 higher, it will not work .....

No way, you can only find the lower version of GCC to install it:

[Download GCC 4.3.2.tar.gz2]

Http://debian.ustc.edu.cn/ubuntu/pool/main/g/
Compile GCC 4.3.2
Sudo. /.. /configure -- enable-versions ages = C, C ++ -- prefix =/usr/local/gcc-4.3.2 -- enable-shared -- With-system-zlib -- without-included-gettext -- enable-

Threads = POSIX -- enable-NLS -- enable-libstdcxx-Debug -- enable-mpfr -- enable-targets = all -- enable-checking = release -- Build = i486-linux-gnu -- Host = i486-linux-

GNU -- target = i486-linux-gnu -- disable-multilib
If make is successful, then sudo make install
When making GCC, the following error occurs: "ASM/errno. h: no such file or directory"
[Solution]
Find errno. h:

/Usr/src/linux-headers-2.6.32-32/ARCH/iSCSI/include/ASM/errno. h

/Usr/src/linux-headers-2.6.32-32/ARCH/x86/include/ASM/errno. h

/Usr/src/linux-headers-2.6.32-32/ARCH/xtensa/include/ASM/errno. h

The machine should be x86, so just make a link.
CD/usr/include
Sudo ln-S/usr/src/linux-headers-2.6.32-32/ARCH/x86/include/ASM/./[Fix]

It took a long time to compile GCC. I had the opportunity to crack it ~~


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.