免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1588 | 回复: 3
打印 上一主题 下一主题

菜鸟提问题:从GNU上下载的小工具如何安装? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-12 15:48 |只看该作者 |倒序浏览
从GNU上看到了一些有趣的小工具(比如列出目录树的tree),下载下来以后是一个单独的文件(tree-1.5.0),请问如何安装到solaris系统中去?
需要用gcc编译吗?
谁能举个例子?多谢了!

论坛徽章:
0
2 [报告]
发表于 2005-12-12 15:59 |只看该作者
看你下载的东西是不是源程序,是不是c/c++,是的话就要gcc编译。

论坛徽章:
0
3 [报告]
发表于 2005-12-12 16:26 |只看该作者
程序里有类似sh的语句,但显然不是sh程序


tree-1.5.0/CHANGES                                                                                  0000644 0000000 0000000 00000011306 10107516250 013403  0                                                                                                    ustar   root                            root                            0000000 0000000                                                                                                                                                                        Version 1.5.0
  - Added -T option to change title and H1 header in HTML output.
  - Added -r option to reverse alpha sort output, ala. 'ls -r'.
  - '|' wildcard support added by David MacMahon <davidm@astron.Berkeley.EDU>.
  - Remove extraneous '/' at the end of dirs and dir-symlinks in HTML output.
  - Removed several possible overflow problems by dynamically allocating
    arrays in several places.

<<<  很多很多历史,声明....  >>>
                                                                                                                                                                                     tree-1.5.0/Makefile                                                                                 0000644 0000652 0000024 00000002516 10107506474 014040  0                                                                                                    ustar   ice                             users                           0000000 0000000                                                                                                                                                                        # $Copyright: $
# Copyright (c) 1996 - 2004 by Steve Baker
# All Rights reserved
#
# This software is provided as is without any express or implied
# warranties, including, without limitation, the implied warranties
# of merchant-ability and fitness for a particular purpose.

CC=gcc
#CFLAGS=-ggdb -Wall -DLINUX_BIGFILE
CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX_BIGFILE
LDFLAGS=-s

# Uncomment for FreeBSD:
#CC=gcc
#CFLAGS=-O2 -Wall -fomit-frame-pointer
#LDFLAGS=-s

# Uncomment for OS X:
#CC=cc
#CFLAGS=-O2 -Wall -fomit-frame-pointer -no-cpp-precomp
#LDFLAGS=

# Uncomment for HP/UX:
#CC=cc
#CFLAGS=-Ae +O2 +DAportable -Wall
#LDFLAGS=

# Uncomment for OS/2:
#CC=gcc
#CFLAGS=-02 -Wall -fomit-frame-pointer -Zomf -Zsmall-conv
#LDFLAGS=-s -Zomf -Zsmall-conv

prefix = /usr/local

VERSION=1.5.0
TREE_DEST=tree
BINDIR=${prefix}/bin
MAN=tree.1
MANDIR=${prefix}/man/man1

all:        tree

tree:        tree.o
        $(CC) $(LDFLAGS) -o $(TREE_DEST) tree.o

tree.o:        tree.c

clean:
        if [ -x $(TREE_DEST) ]; then rm $(TREE_DEST); fi
        if [ -f tree.o ]; then rm *.o; fi
        rm -f *~

install:
        install -d $(BINDIR)
        install -d $(MANDIR)
        if [ -e $(TREE_DEST) ]; then \
                install -s $(TREE_DEST) $(BINDIR)/$(TREE_DEST); \
        fi
        install $(MAN) $(MANDIR)/$(MAN)

distclean:
        if [ -f tree.o ]; then rm *.o; fi
        rm -f *~
        

dist:        distclean
        tar zcf ../tree-$(VERSION).tgz -C .. `cat .tarball`
                                                                                                                                                                                  tree-1.5.0/README                                                                                   0000644 0000652 0000024 00000005441 10107515573 013260  0                                                                                                    ustar   ice                             users                           0000000 0000000                                                                                                                                                                 

<<<  还有很多很多....  >>>

论坛徽章:
0
4 [报告]
发表于 2005-12-12 16:42 |只看该作者

仔细看过以后发现

程序的主体的确是用c写的,可是这个文件包含了很多东西(readme,声明,makefile信息,C code...), 像是一个包
问题是我现在只有这么一个文件,怎么才能在solaris下使用这个GNU工具?
请问谁有安装GNU工具的经验吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP