Доброго времени суток.
Система openSUSE 13.1 64бит.
По учёбе понадобился САПР Quartus II, на официальном сайте есть бесплатная студенческая версия http://www.altera.com/education/univ/software/qsim/unv-qsim.html
Скачал архив, распаковал. Пытаюсь в терминале запустить скрипт sh. А мне выпадает следующее сообщение:
[console]
Type the full name of the Quartus II installation directory:
/home/pavel/altera
The provided directory '/home/pavel/altera' does not contain a valid Quartus II installation.
Type the full name of the Quartus II installation directory:
[/console]
Программа сообщает о том, что ей нужно указать дирректорию, я указываю. Ни в какую.
Не устанавливается Quartus II
Ну так покажите скрипт, иначе остается только гадать.
Ну так покажите скрипт, иначе остается только гадать.
#!/bin/bash
# Altera University Program Design Suite Install Script
# Copyright (c) 2013 Altera Corporation. All rights reserved.
set +u
# define useful constants
UPDS_VERSION="13.0"
NIOS_VER_MAJOR="13"
NIOS_VER_MINOR="0"
# display copyright and introductory messages
echo ""
echo "Altera University Program Design Suite $UPDS_VERSION"
echo "Installation Script for Linux Workstations"
echo "Copyright (c) Altera Corporation 2013"
echo ""
echo "Type Ctrl+C <Return> to quit this installation script at any time."
echo ""
echo "Use this installation script to install the Altera University"
echo "Program Design Suite, including the Altera Monitor Program,"
echo "Altera University Program IP Cores, and example systems"
echo "and software."
echo ""
echo "Please read the end-user license agreement located in the"
echo "installer directory entitled 'license.txt'."
echo ""
echo "Press <Return> to continue installation: "
read
# change to the installer's directory
cd `dirname $0`
# check for the existence of required environment variables;
# If found give the user the option to install to this location,
# or to specify another location to install to.
# if not found (this can happen if Quartus II and Nios II were
# installed without root access), provide the user with the
# option to specify them.
if [ -f "$QUARTUS_ROOTDIR/bin/quartus" ] ; then
echo "Found a Quartus II installation at '$QUARTUS_ROOTDIR'."
echo "To install the Altera University Program Design Suite in this location, press <Return>."
echo "To install the Altera University Program Design Suite in a a different location, "
echo "enter the path to a different Quartus II installation."
echo ""
read USER_ROOTDIR
fi
if [ "$USER_ROOTDIR" = "" ] ; then
echo "Using the automatic destination"
else
QUARTUS_ROOTDIR=$USER_ROOTDIR
echo "Using the user-defined destination '$QUARTUS_ROOTDIR'"
if [ ! -f "$QUARTUS_ROOTDIR/bin/quartus" ] ; then
QUARTUS_ROOTDIR=""
echo "The provided directory '$USER_ROOTDIR' does not contain a valid Quartus II installation."
while [ ! "$QUARTUS_ROOTDIR" ] ; do
echo "Type the full name of the Quartus II installation directory: "
read USER_ROOTDIR
if [ -d "$USER_ROOTDIR" ] && [ -f "$USER_ROOTDIR/bin/quartus" ] ; then
QUARTUS_ROOTDIR=$USER_ROOTDIR
else
echo "The provided directory '$USER_ROOTDIR' does not contain a valid Quartus II installation."
echo ""
fi
done
fi
fi
if [ ! -f "$QUARTUS_ROOTDIR/bin/quartus" ] ; then
echo ""
QUARTUS=`which quartus`
echo ""
if [ -f "$QUARTUS" ] ; then
QUARTUS_ROOTDIR=${QUARTUS%/*/*}
else
QUARTUS_ROOTDIR=""
echo "The Altera University Program Design Suite requires Quartus II to be installed."
echo "Unable to locate the Quartus II installation."
echo "Please provide the path to the Quartus II installation directory manually."
echo ""
while [ ! "$QUARTUS_ROOTDIR" ] ; do
echo "Type the full name of the Quartus II installation directory: "
read qdir
if [ -d "$qdir" ] && [ -f "$qdir/bin/quartus" ] ; then
QUARTUS_ROOTDIR=$qdir
else
echo "The provided directory '$qdir' does not contain a valid Quartus II installation."
echo ""
fi
done
fi
fi
if [ ! -w "$QUARTUS_ROOTDIR/.." ] ; then
echo "The provided directory '$QUARTUS_ROOTDIR/..' is read-only."
echo "Please retry the installer, and select a writable directory containing a Quartus II installation."
echo ""
exit
fi
export QUARTUS_ROOTDIR
echo ""
if [ ! -f "$SOPC_KIT_NIOS2/version.ptf" ] ; then
SOPC_KIT_NIOS2=""
echo "The Altera University Program Design Suite requires Nios II to be installed."
echo "Unable to locate the Nios II EDS installation."
echo "Please provide the path to the Nios II EDS installation directory manually."
echo ""
while [ ! "$SOPC_KIT_NIOS2" ] ; do
echo "Type the full name of the Nios II EDS installation directory: "
read ndir
if [ -d "$ndir" ] && [ -f "$ndir/version.ptf" ] ; then
SOPC_KIT_NIOS2=$ndir
else
echo "The provided directory '$ndir' does not contain a valid Nios II EDS installation."
echo
fi
done
fi
export SOPC_KIT_NIOS2
echo ""
# extract the major part of the Nios II EDS version
nmajor=`cat $SOPC_KIT_NIOS2/version.ptf | grep major`
nmajor=`expr "$nmajor" : '[^0-9]\+\([0-9]\+\)'`
# extract the minor part of the Nios II EDS version
nminor=`cat $SOPC_KIT_NIOS2/version.ptf | grep minor`
nminor=`expr "$nminor" : '[^0-9]\+\([0-9]\+\)'`
# make sure that the version of the installed Nios II EDS is recent enough
if [ "$nmajor" -lt $NIOS_VER_MAJOR ] || ([ "$nmajor" -eq $NIOS_VER_MAJOR ] && [ "$nminor" -lt $NIOS_VER_MINOR ]) ; then
echo "The Altera University Program Design Suite $UPDS_VERSION requires Nios II version $NIOS_VER_MAJOR.$NIOS_VER_MINOR or later (currrently installed version is $nmajor.$nminor)."
exit 1
fi
# untar the archive containing the files of the Altera UPDS to
# the Altera root directory (the directory one level above the
# Quartus II installation directory)
tar -xvzf upds_installer_data.tgz -C "$QUARTUS_ROOTDIR/.."
# exit if an error occured (e.g., if the archive could not be found)
if [ ! $? -eq 0 ] ; then
exit 1
fi
# generate the launcher script to start the Altera Monitor Program
launcher_script="#!/bin/bash\n\n"
launcher_script="${launcher_script}export PATH=\$PATH:$SOPC_KIT_NIOS2/bin/gnu/H-i686-pc-linux-gnu/bin:$SOPC_KIT_NIOS2/bin:$QUARTUS_ROOTDIR/bin:$QUARTUS_ROOTDIR/sopcbuilder/bin\n"
launcher_script="${launcher_script}QUARTUS_ROOTDIR=\"$QUARTUS_ROOTDIR\"\n"
launcher_script="${launcher_script}SOPC_KIT_NIOS2=\"$SOPC_KIT_NIOS2\"\n"
launcher_script="${launcher_script}export QUARTUS_ROOTDIR\n"
launcher_script="${launcher_script}export SOPC_KIT_NIOS2\n"
launcher_script="${launcher_script}cd $QUARTUS_ROOTDIR/../University_Program/Monitor_Program/bin\n"
launcher_script="${launcher_script}source $QUARTUS_ROOTDIR/../University_Program/Monitor_Program/bin/up_nios2_command_shell.sh > /dev/null\n"
launcher_script="${launcher_script}$QUARTUS_ROOTDIR/linux/jre/bin/java -jar $QUARTUS_ROOTDIR/../University_Program/Monitor_Program/bin/Altera_Monitor_Program.jar\n"
echo -e "$launcher_script" > $QUARTUS_ROOTDIR/../University_Program/Monitor_Program/bin/altera-monitor-program
# make the launcher script executable
chmod 755 $QUARTUS_ROOTDIR/../University_Program/Monitor_Program/bin/altera-monitor-program
chmod 755 $QUARTUS_ROOTDIR/../University_Program/Monitor_Program/bin/bin/nios-monitor-terminal
chmod 755 $QUARTUS_ROOTDIR/../University_Program/Monitor_Program/bin/bin/nios-monitor-terminal-wrapped
# create the Altera Monitor Program settings directory in the
# user's home directory
mkdir -p ~/.altera.monitor_program
# completion message
echo ""
echo "Altera University Program Design Suite $UPDS_VERSION installation complete."
echo ""
exit 0
Читали в readme.txt
Pre-requisites
==============
Before installing the Altera UPDS, you must have installed Altera's
Quartus(R) II and Nios(R) II EDS software, version 13.0 or higher. It is
suggested that the software be installed with root privileges;
otherwise, some useful environment variables might not be set
correctly.
The USB-Blaster(TM) cable needs to be installed in order to allow access
to a board connected to the computer. If running without root
privileges, proper read and write access needs to be granted to the
USB port. For more information on how to do this, please refer to the
usb_blaster.txt file included in this installation package.
Перевести?
# Altera University Program Design Suite Install Script
Так это установочный скрипт ;)
Распаковать в /home/$USER/bin и запускать командой quartus
# Altera University Program Design Suite Install Script
Так это установочный скрипт ;)
Распаковать в /home/$USER/bin и запускать командой quartus
[console]linux-of10:/home/pavel/bin # ls -al
итого 54276
drwxr-xr-x 2 pavel users 4096 май 19 21:11 .
drwxr-xr-x 56 pavel users 4096 май 19 21:12 ..
-rwxrwxrwx 1 pavel users 6925 июн 28 2013 install_altera_upds
-rw-r--r-- 1 pavel users 9974 май 6 2013 license.txt
-rw-r--r-- 1 pavel users 3269 июн 19 2013 readme.txt
-rw-r--r-- 1 pavel users 55538168 июн 28 2013 upds_installer_data.tgz
-rw-r--r-- 1 pavel users 2351 июн 19 2013 usb_blaster.txt
linux-of10:/home/pavel/bin # quartus install_altera_upds
If 'quartus' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf quartus[/console]
Читали в readme.txt
Pre-requisites
==============
Before installing the Altera UPDS, you must have installed Altera's
Quartus(R) II and Nios(R) II EDS software, version 13.0 or higher. It is
suggested that the software be installed with root privileges;
otherwise, some useful environment variables might not be set
correctly.
The USB-Blaster(TM) cable needs to be installed in order to allow access
to a board connected to the computer. If running without root
privileges, proper read and write access needs to be granted to the
USB port. For more information on how to do this, please refer to the
usb_blaster.txt file included in this installation package.
Перевести?
Необходимо установить пакеты Quartus(R) II and Nios(R) II EDS. Я их найти нигде не могу
На сайте есть Quartus II web edition. Я прошёл регистрацию и скачал архив, распаковал в папку bin
[console]pavel@linux-of10:~/bin> ls -al
итого 16
drwxr-xr-x 3 pavel users 4096 май 20 15:04 .
drwxr-xr-x 57 pavel users 4096 май 20 15:53 ..
drwxr-xr-x 2 pavel users 4096 май 20 15:04 components
-rwxrwxrwx 1 pavel users 3647 окт 24 2013 setup.sh
pavel@linux-of10:~/bin>
[/console]
содержимое каталога components
[console]pavel@linux-of10:~/bin> ls -al components/
итого 4696724
drwxr-xr-x 2 pavel users 4096 май 20 15:04 .
drwxr-xr-x 3 pavel users 4096 май 20 15:04 ..
-rw-r--r-- 1 pavel users 489151536 окт 24 2013 arria_web-13.1.0.162.qdz
-rw-r--r-- 1 pavel users 849721846 окт 24 2013 cyclonev-13.1.0.162.qdz
-rw-r--r-- 1 pavel users 575075159 окт 24 2013 cyclone_web-13.1.0.162.qdz
-rw-r--r-- 1 pavel users 6376553 окт 24 2013 max_web-13.1.0.162.qdz
-rwxr-xr-x 1 pavel users 857444963 окт 24 2013 ModelSimSetup-13.1.0.162.run
-rwxr-xr-x 1 pavel users 370840239 окт 24 2013 QuartusHelpSetup-13.1.0.162.run
-rwxr-xr-x 1 pavel users 1660796016 окт 24 2013 QuartusSetupWeb-13.1.0.162.run[/console]
На youtube есть ролик с установкой, там правда Ubuntu
http://www.youtube.com/watch?v=2sJQX0QoFHw
В свойствах setup.sh везде стоит чтение и запись, файл является исполняемым. По клику никаких реакций.
В терминале:
[console]pavel@linux-of10:~/bin> ./setup.sh
bash: ./setup.sh: /bin/env: плохой интерпретатор: Нет такого файла или каталога[/console]
[console]pavel@linux-of10:~/bin> sudo ./setup.sh
root's password:
sudo: unable to execute ./setup.sh: No such file or directory[/console]
[console]pavel@linux-of10:~/bin> cat setup.sh[/console]
#!/bin/env bash
# Copyright (c) 2013 Altera Corporation. All rights reserved.
# Your use of Altera Corporation's design tools, logic functions and other
# software and tools, and its AMPP partner logic functions, and any output files
# any of the foregoing (including device programming or simulation files), and
# any associated documentation or information are expressly subject to the terms
# and conditions of the Altera Program License Subscription Agreement, Altera
# MegaCore Function License Agreement, or other applicable license agreement,
# including, without limitation, that your use is for the sole purpose of
# programming logic devices manufactured by Altera and sold by Altera or its
# authorized distributors. Please refer to the applicable agreement for
# further details.
# Check if we are running on a supported version of Linux distribution with pre-requisite packages installed.
# Both RedHat and CentOS have the /etc/redhat-release file.
unsupported_os=0
is_rhel_or_centos=0
missing_package=0
if [ -f /etc/redhat-release ] ;then
os_version=`cat /etc/redhat-release | grep release | sed -e 's/ (.*//g'`
os_platform=`echo ${os_version} | grep "Red Hat Enterprise" || echo ${os_version} | grep "CentOS"`
if [ "$os_platform" != "" ] ;then
is_rhel_or_centos=1
os_rev=`echo ${os_version} | grep "release 3" || echo ${os_version} | grep "release 4"`
if [ "$os_rev" != "" ] ;then
unsupported_os=1
fi
fi
elif [ -f /etc/SuSE-release ] ;then
os_version=`cat /etc/SuSE-release`
os_platform=`echo ${os_version} | grep SUSE`
if [ "$os_platform" != "" ] ;then
os_rev=`echo ${os_version} | grep "VERSION = 10"`
if [ "$os_rev" != "" ] ;then
os_version=`cat /etc/SuSE-release | tr "\n" ' '| sed -e 's/ VERSION.*//g'`
unsupported_os=1
fi
fi
fi
if [ $unsupported_os -eq 1 ] ;then
echo ""
echo "Altera software is not supported on the $os_version operating system. Refer to the Operating System Support page of the Altera website for complete operating system support information."
echo ""
answer="n"
while [ "$answer" != "y" ]
do
echo -n "Do you want to continue to install the software? (y/n): "
read answer
if [ "$answer" = "n" ] ;then
exit
fi
done
fi
if [ $is_rhel_or_centos -eq 1 ] ;then
for item in libstdc++ glibc libX11 libXext libXau libXdmcp freetype fontconfig expat
do
if test -z `rpm -q $item --qf "%{n}-%{arch}\n"| grep "i386\|i486\|i586\|i686"` ; then
if [ $missing_package -eq 0 ] ;then
missing_package=1
echo ""
echo "You must install the 32-bit version of the following libraries for the Quartus II installer and software to operate properly:"
fi
echo "> $item"
fi
done
else
machine_bitness=`uname -m`
if [ "$machine_bitness" == "x86_64" ] ;then
echo ""
echo "You must have the 32-bit compatibility libraries installed for the Quartus II installer and software to operate properly."
echo ""
fi
fi
if [ $missing_package -eq 1 ] ;then
echo ""
echo "You can install these libraries with the RPM utility on Red Hat Linux Enterprise systems or with the yum utility on CentOS systems. Refer to the Altera Software Installation and Licensing Manual for any additional libraries required by Altera Software."
echo ""
echo "If you proceed with the installation your software may not function correctly."
echo ""
answer="n"
while [ "$answer" != "y" ]
do
echo -n "Do you want to continue to install the software? (y/n): "
read answer
if [ "$answer" = "n" ] ;then
exit
fi
done
fi
export SCRIPT_PATH=`dirname "$0"`
export CMD_NAME="$SCRIPT_PATH/components/QuartusSetupWeb-13.1.0.162.run"
eval exec "\"$CMD_NAME\"" $@
ТС, вы просто как какой-то новичок-убунтоид вопросы задаете))
#!/bin/env bash → #!/bin/bash (например)
В /home/pavel/bin лежат бинарники и, может быть, библиотеки, а не установочные пакеты (это нужно знать!)
Короче, учитесь работать в командной строке.
ТС, вы просто как какой-то новичок-убунтоид вопросы задаете))
#!/bin/env bash → #!/bin/bash (например)
В /home/pavel/bin лежат бинарники и, может быть, библиотеки, а не установочные пакеты (это нужно знать!)
Короче, учитесь работать в командной строке.
Спасибо, установка пошла
Спасибо огромное, всё работает. Дополнительно ещё пришлось доустановить
[console]zypper install libpng12-0-32bit[/console]