LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1912|回复: 18

Anjuta 1.1.1 released!

[复制链接]
发表于 2003-6-2 19:10:37 | 显示全部楼层 |阅读模式
Build in gtk2.
i think it can solve the chinese problem...
发表于 2003-6-2 20:19:43 | 显示全部楼层
没用过
有机会找一个来用用
发表于 2003-6-4 01:57:47 | 显示全部楼层
能不能把它做成RPM包给下载?
源码的我不会装.我试了一下没有成功.
不知道怎么搞的!
发表于 2003-6-4 02:37:09 | 显示全部楼层
我装的不是最高版的!
如何让它运行中文输入与输出?
还有为什么在运行程序时要求输入过程中不能在输错的情况下用backspace
呢?怎么办?
还有是不是大家运行的时候都是在它里面的终端里面输入: ./filename
来运行的呀?
为什么这里面总是把
char line[81];
while(gets(line)!=NULL && line[0]!='\0');
这样的情况把gets说它用法很危险!
给出警告.为什么呀?有什么解决办法吗?
发表于 2003-6-8 05:36:13 | 显示全部楼层
to Andy84920:
Anjuta我也没怎么用过,前两天装了一个,是debian下的1.02版的,创建工程老是不成功,没法用。
感觉Anjuta做发布的程序还不错,该有的文件,包括版权声明都有了,不过你要是学习编程的话似乎用不着,用个简单的编辑器比较好,这样可以把注意力放到语言本身,而不是IDE上,linux下的编辑器象vim和emacs都不错,置顶的论坛索引有教程,KDE下的kate也不错,如果你用不惯vim和emacs可以试试这个。
gets函数有可能导致缓冲区溢出,所以不推荐使用,最好用fgets,不过fgets读入一行后并不去掉尾部的换行符,是否去除要看实际情况,一般的代码是:
char s[80];
fgets(s, 79, stdin);
s[strlen(s) - 1] = '\0'; /* 可选,去除尾部换行 */
现在安全越来越重要,可能导致缓冲区溢出的函数最好不用,只要是输入,尽量选择有限定输入大小的函数,很多函数有带n的版本,尽量选择带n的。
发表于 2003-6-8 10:36:07 | 显示全部楼层
不知道为什么是:s[strlen(s) - 1] = '\0';
因为fgets函数是当没有达到最大的空间的时候,会自动在空字符前加一个换行符.而strlen并不计算空字符.所以应该是s[strlen(s)]='\0'才对吧?
发表于 2003-6-8 11:19:10 | 显示全部楼层
s[strlen(s)]是字符串结尾的\0,s[strlen(s) - 1]是最后一个字符。
用个例子想想,"abc"
a b c \0
0 1 2 3
发表于 2003-6-8 11:29:07 | 显示全部楼层
不好意思!
连这个也没注意!
发表于 2003-6-8 11:32:46 | 显示全部楼层
能不能介绍一下最新版的1.1.1的安装方法呀?
你看我的安装为什么会这样:
这是我在解压的目录里安装时出现的问题:
[root@localhost anjuta-1.1.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for strerror in -lcposix... no
checking for ANSI C header files... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking return type of signal handlers... void
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.0.6 gtk+-2.0 >= 2.0.8 ORBit-2.0 >= 2.4.0 libglade-2.0 >= 2.0.0 libgnome-2.0 >= 2.0.2 libgnomeui-2.0 >= 2.0.2 libgnomeprint-2.2 >= 2.0.1 libgnomeprintui-2.2 >= 2.0.1 gnome-vfs-2.0 >= 2.0.2 gnome-vfs-module-2.0 >= 2.0.2 libbonobo-2.0 >= 2.0.0 libbonoboui-2.0 >= 2.0.1 vte >= 0.7.0 libzvt-2.0 >= 2.0.0 libxml-2.0 >= 2.4.23 pango >= 1.1.1... Package libgnomeprint-2.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgnomeprint-2.2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgnomeprint-2.2' found

configure: error: Library requirements ( glib-2.0 >= 2.0.6 gtk+-2.0 >= 2.0.8 ORBit-2.0 >= 2.4.0 libglade-2.0 >= 2.0.0 libgnome-2.0 >= 2.0.2 libgnomeui-2.0 >= 2.0.2 libgnomeprint-2.2 >= 2.0.1 libgnomeprintui-2.2 >= 2.0.1 gnome-vfs-2.0 >= 2.0.2 gnome-vfs-module-2.0 >= 2.0.2 libbonobo-2.0 >= 2.0.0 libbonoboui-2.0 >= 2.0.1 vte >= 0.7.0 libzvt-2.0 >= 2.0.0 libxml-2.0 >= 2.4.23 pango >= 1.1.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
[root@localhost anjuta-1.1.1]# make
make: *** No targets specified and no makefile found. Stop.
[root@localhost anjuta-1.1.1]#

要怎么办???

我一开始安装的1.0.2版的RPM包,我用rpm -e anjuta 怎么没用啊?(说我没安装,我明显装了吗.)用rpm -e anjuta-1.1.1.也没有用!
发表于 2003-6-8 11:44:03 | 显示全部楼层
No package 'libgnomeprint-2.2' found
就是这个原因呀。
先用-q查一下包的名字,用图形界面的包管理器也不错。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表