![我应该把这段代码放在哪里才能安装 Absynth 5?](https://linux22.com/image/969293/%E6%88%91%E5%BA%94%E8%AF%A5%E6%8A%8A%E8%BF%99%E6%AE%B5%E4%BB%A3%E7%A0%81%E6%94%BE%E5%9C%A8%E5%93%AA%E9%87%8C%E6%89%8D%E8%83%BD%E5%AE%89%E8%A3%85%20Absynth%205%EF%BC%9F.png)
我想在我的计算机上安装 absynth 5。我找到了这个代码,在这里。
#!/bin/bash
# Date : (2013-02-01)
# Last revision : (2013-02-01)
# Distribution used to test : Kubuntu 12.04 LTS
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.1.9
# CHANGELOG
# [SuperPlumus] (2013-06-17 19-35)
# Update gettext message
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
PREFIX="Absynth5"
WINEVERSION="1.3.0"
TITLE="Absynth 5"
EDITOR="Native Instruments"
GAME_URL="http://www.native-instruments.com"
AUTHOR="DJYoshaBYD"
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
# Create Prefix
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
#Dependencies
# Configuration
Set_OS "winxp"
Set_SoundDriver "alsa"
# Installation
POL_Wine_WaitBefore "$TITLE"
GC_DONT_GC=1 POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
# Create Shortcuts
POL_Shortcut "Absynth\ 5.exe" "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'NOTICE: For low-latency audio, look into WineASIO.')" "$TITLE"
POL_SetupWindow_Close
exit 0
但我认为它应该放在终端以外的其他地方,因为在终端中输入 #!/bin/bash 后我仍然得到一个 $ 符号。提前感谢您的所有帮助。
答案1
这些不是应该在命令行中输入的命令。当您看到第一行开头带有“#!”的文本时,表明这是一个脚本。您应该将文本放入文件中并一次性运行。
打开文本编辑器,将代码粘贴到新文件中。将文件保存为“absynth5.sh”。
现在,使用这里提供的一个答案来运行脚本: