当前位置: 技术问答>linux和unix
问一个Linux下用光盘装软件的问题,很菜,大家不要扔鸡蛋啊:)
来源: 互联网 发布时间:2015-05-13
本文导语: 我装了RedHat9,有一张软件光盘,用root登陆,用mount进入了光盘,可以看到光盘里面所有的内容.现在想装软件,我看到一个install文件,但是不会装.我在shell下面使用make install,或者install -h,或者直接install,系统提示少参数.应该...
我装了RedHat9,有一张软件光盘,用root登陆,用mount进入了光盘,可以看到光盘里面所有的内容.现在想装软件,我看到一个install文件,但是不会装.我在shell下面使用make install,或者install -h,或者直接install,系统提示少参数.应该在shell下键入什么命令?我这里给出install的文件:
#! /bin/sh
#
# Name:
# install point of entry for MATLAB 6.x CDROM installation
#
# Usage:
# install -h | [-] [-debug] [ [-t] | [-x] ]
#
# Description:
# "install" is the point of entry for all MATLAB 6.x CDROM installations.
# The system administrator should be logged in as "root".
#
# This script is assumed to be called from the CDROM at path
#
# $CD_ROOT/install (or equivalent ISO 9660 path)
#
# The script performs the following functions:
#
# case 1: -h
#
# Outputs the usage.
#
# case 2: [-] [-debug] [ [-t] | [-x] ]
#
# Call either xsetup or tsetup.
#
# In general:
#
# 1. Determine the local arch.
#
# 2. Determines the environment variable TMW_CD_FORMAT by looking
# at the value of the command 'install' and maps the filename
# variables depending on this values.
#
# 3. Sets environment variables
#
# CD_ROOT
# CD_UPDATE
# LOCAL_ARCH
#
# 4. Parses any command line options.
#
# NOTE: Any paths below are mapped appropriately to ISO 9660
# conforming names.
#
# Case 1:
#
# Ends in:
#
# $CD_UPDATE/install/options.sh
#
# Case 2:
#
# Depending on the options it either calls:
#
# $CD_UPDATE/bin/$LOCAL_ARCH/tsetup
# $CD_UPDATE/bin/$LOCAL_ARCH/xsetup
#
# with options -debug
#
# Options:
#
# -h
# Help. Show command usage.
#
# -
# Run this install program assuming this architecture.
# (This does not change the CD-ROM format type).
#
# -debug
#
# Turn on debugging.
#
# -t
# Use the terminal install.
#
# -x
# Use the X Window install
#
# Notes:
#
# (UNIX naming - convert to ISO 9660 as required)
#
# 1. required commands: awk, cd, echo, expr, ls, mv, pwd, rm
# 2. Bourne shell must support [ ] notation in if-then
# 3.
# 4. other required scripts:
#
# main.sh
#
# abort.sh
# arch.sh
# mapname.sh
# options.sh
# license.sh
# util.sh
#
# backend
# batch4
#
# which are in $CD_UPDATE/install
#
# 5. Install environment in $CD_UPDATE/install
#
# ./install (all *.sh files from standard install directory)
# ./etc
# lmhostid
# license.dat (skeleton file - license.dat.skel)
# ./scripts (all * files from etc/scripts directory with
# lm_matlab -> lmvendor)
# ./$ARCH
# lmhostid
# lmutil
# ./util
# arch.sh
#
# Copyright (c) 1994-2002 by The MathWorks, Inc.
#! /bin/sh
#
# Name:
# install point of entry for MATLAB 6.x CDROM installation
#
# Usage:
# install -h | [-] [-debug] [ [-t] | [-x] ]
#
# Description:
# "install" is the point of entry for all MATLAB 6.x CDROM installations.
# The system administrator should be logged in as "root".
#
# This script is assumed to be called from the CDROM at path
#
# $CD_ROOT/install (or equivalent ISO 9660 path)
#
# The script performs the following functions:
#
# case 1: -h
#
# Outputs the usage.
#
# case 2: [-] [-debug] [ [-t] | [-x] ]
#
# Call either xsetup or tsetup.
#
# In general:
#
# 1. Determine the local arch.
#
# 2. Determines the environment variable TMW_CD_FORMAT by looking
# at the value of the command 'install' and maps the filename
# variables depending on this values.
#
# 3. Sets environment variables
#
# CD_ROOT
# CD_UPDATE
# LOCAL_ARCH
#
# 4. Parses any command line options.
#
# NOTE: Any paths below are mapped appropriately to ISO 9660
# conforming names.
#
# Case 1:
#
# Ends in:
#
# $CD_UPDATE/install/options.sh
#
# Case 2:
#
# Depending on the options it either calls:
#
# $CD_UPDATE/bin/$LOCAL_ARCH/tsetup
# $CD_UPDATE/bin/$LOCAL_ARCH/xsetup
#
# with options -debug
#
# Options:
#
# -h
# Help. Show command usage.
#
# -
# Run this install program assuming this architecture.
# (This does not change the CD-ROM format type).
#
# -debug
#
# Turn on debugging.
#
# -t
# Use the terminal install.
#
# -x
# Use the X Window install
#
# Notes:
#
# (UNIX naming - convert to ISO 9660 as required)
#
# 1. required commands: awk, cd, echo, expr, ls, mv, pwd, rm
# 2. Bourne shell must support [ ] notation in if-then
# 3.
# 4. other required scripts:
#
# main.sh
#
# abort.sh
# arch.sh
# mapname.sh
# options.sh
# license.sh
# util.sh
#
# backend
# batch4
#
# which are in $CD_UPDATE/install
#
# 5. Install environment in $CD_UPDATE/install
#
# ./install (all *.sh files from standard install directory)
# ./etc
# lmhostid
# license.dat (skeleton file - license.dat.skel)
# ./scripts (all * files from etc/scripts directory with
# lm_matlab -> lmvendor)
# ./$ARCH
# lmhostid
# lmutil
# ./util
# arch.sh
#
# Copyright (c) 1994-2002 by The MathWorks, Inc.
|
./install
ok!
ok!
|
sh install