首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

在Centos-5上安装Objective-C的编译环境

2012-08-02 
在Centos-5下安装Objective-C的编译环境1. 安装gcc的objc编译功能:$ yum -y install gcc-objc?2. 从http:/

在Centos-5下安装Objective-C的编译环境

1. 安装gcc的objc编译功能:

$ yum -y install gcc-objc

?

2. 从http://wwwmain.gnustep.org下载GNUstep Startup和GNUstep Base,并从源码进行安装。

?

3. 把gnustep tools目录加入到系统目录下(默认是/usr/GNUstep/System/Tools)

$ export PATH=$PATH:/usr/GNUstep/System/Tools

?

4. 把编译好的库放在ldconfig的配置文件

$ echo "/usr/GNUstep/Local/Library/Libraries/" >> /etc/ld.so.conf$ ldconfig
?

5. 进行编译objective-c.m文件

$ gcc `gnustep-config --objc-flags` -L/usr/GNUstep/Local/Library/Libraries -lgnustep-base hello.m -o hello

?

6. 运行程序

?

?

可以参考http://www.techotopia.com/index.php/Building_and_Installing_GNUstep_on_Linux

热点排行