build ginger on 32bit of ubuntu 10.10

本文详细介绍了从Ubuntu 10.10到11.04的升级过程,包括安装必要的包、安装Java、SSH、Subversion和Samba等工具。同时,提供了解决升级过程中遇到的编译错误的具体步骤,如修改文件路径、添加特定依赖和更新系统库等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

First of all, the most part will be the same as ubuntu 11.04, which is metioned in this article:

http://blog.youkuaiyun.com/elfylin/article/details/6666034


The main purpose here is to discuss the difference and the problem met here.


1 install the nessary pack.

sudo apt-get install python (no necessary)
sudo apt-get install zlib1g-dev
sudo apt-get install git-core gnupg
sudo apt-get install flex bison gperf libsdl-dev libesd0-dev(nonecessary) libwxgtk2.6-dev build-essential(not necessary) zip(notnecessary) curl
sudo apt-get install sun-java6-jdk

some are not necessary on 11.04,but are necessary on 10.10, just try to install all of them. Of course , if it is not need the system will tell you.


2 install sun-java6-jdk

the procedure is the same as 11.04


3

install necessary tools such as ssh and samba

apt-get install ssh

apt-get subversion

apt-get install samba

apt-get install samba-common-bin (must be done on 10.10 which is not necessary on 11.04)

there is another difference, that the default samba share doesn't work to guest. Even you share the dir with guest allowed,

usename and password is still needed if you want to visit it.

one solution is add a samba user for your system.

use : sampasswd -a username, fellow the prompt of the system, a new user will be added.

remember the user must be a user of your ubuntu system.


for more infomation about samba, visit:

http://blog.youkuaiyun.com/elfylin/article/details/5988322


4.

get the code , the same as 11.04



5.

compile the code

no need to say, there will be compile error.

"In file included from /usr/include/features.h:387,
                 from /usr/include/stdio.h:28,
                 from external/clearsilver/cgi/cgiwrap.c:18:
/usr/include/gnu/stubs.h:9: fatal error: gnu/stubs-64.h: No such file or directoryIn file included from /usr/include/features.h:387,
                 from /usr/include/unistd.h:26,
                 from external/clearsilver/cgi/cgi.c:14:
/usr/include/gnu/stubs.h:9: fatal error: gnu/stubs-64.h: No such file or directory"


solution is in this blog:

"http://blog.chinaunix.net/space.php?uid=22415790&do=blog&cuid=2616914"

in short.

A

modify the files:

./external/clearsilver/cs/Android.mk
./external/clearsilver/cgi/Android.mk 
./external/clearsilver/java-jni/Android.mk 
./external/clearsilver/util/Android.mk
replay m64 to m32

B

comment such code in /build/core/main.mk

ifeq ($(BUILD_OS),linux)
build_arch := $(shell uname -m)
ifneq (64,$(findstring 64,$(build_arch)))
$(warning ************************************************************)
$(warning You are attempting to build on a 32-bit system.)
$(warning Only 64-bit build environments are supported beyond froyo/2.2.)
$(warning ************************************************************)
$(error stop)
endif
endif

(i didn't do that, you should do that when you met error like this "You are attempting to build on a 32-bit system. Only 64-bit build environments are supported beyond froyo/2.2.")


C

apt-get install libc6-dev-i386 or apt-get install  libc6-dev depending on your system.

other way may be apt-get install g++-multilib

(if still doesn't work , try to do this )


OK

enjoy it


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值