装了gzip-1.4-sol8-sparc-local,gunzip还是不能用
本帖最后由 Ataraxia 于 2011-05-13 09:33 编辑gzip 是可以用的
环境变量已经设置
#which gunzip
/usr/local/bin/gunzip
#/usr/local/bin/gunzip gzip-1.4-sol8-sparc-local.gz
/usr/local/bin/gunzip: Command not found
环境
#uname -a
SunOS david 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10 你怎么装这个包的? 检查一下/usr/local/bin/gunzip是不是一个角本或链接 检查PATH 检查一下/usr/local/bin/gunzip是不是一个角本或链接
doging 发表于 2011-05-13 10:38 http://bbs.chinaunix.net/images/common/back.gif
真的啊
gunzip 怎么是个脚本
那是不是需要安装gunzip啊
[#/usr/local/bin]vi gunzip
"gunzip" 61 lines, 2265 characters
#!/usr/bin/bash
# Uncompress files.This is the inverse of gzip.
# Copyright (C) 2007 Free Software Foundation
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
bindir='/usr/local/bin'
case $1 in
--__bindir) bindir=${2?}; shift; shift;;
esac
PATH=$bindir:$PATH {:3_187:} 请问怎么处理 回复 7# Ataraxia
系统自带gunzip 回复 7# Ataraxia
默认是/usr/bin/gunzip # gzip -d *.gz
页:
[1]
2