Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: How do I set environment variables for .sh installation file?

  1. #1
    Join Date
    Mar 2014
    Beans
    38

    How do I set environment variables for .sh installation file?

    Hello, I am trying to install a software called GTSuite. The instructions say I need to set an environment variable called GTTEMPDIR as some temporary directory. I dont know how to do this, can anyone help me?

    I use the command sudo sh ./cdinstall.sh to execute the file.

    Full installation instructions are:
    Linux ONLY - From the terminal window where the installation will be run, set the environment
    variable GTTEMPDIR to a directory with a minimum of 800 MB of available space. This directory
    will be used as temporary storage during installation. If this variable is not explicitly set, the
    installation will default to /tmp. Note that on many systems, the /tmp directory will NOT have
    enough space and this could cause system stability issues.

    it tends to otherwise use /TMP which does not seem to have enough memory for some reason ?

    I believe two ways of going about it either I can increase the /TMP size somehow or set the environment variable GTTEMPDIR to a temporary directory of my choice?

    What should I do?

    Thank you.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I set environment variables for .sh installation file?

    You can see which partitions have enough space using df

    Code:
    df -h
    Then you should be able to set the variable in the command line. Here it would be /tmp

    Code:
    sudo GTTEMPDIR=/tmp/ sh ./cdinstall.sh
    but depending on your setup it could be something else with more space. Filling up /tmp or /var/tmp causes problems on live systems.

  3. #3
    Join Date
    Mar 2014
    Beans
    38

    Re: How do I set environment variables for .sh installation file?

    I dont get it now its giving me this error:

    Creating temporary install directory: /media/sarosh/Data/GTIse/GTTEMPD/gt.install.9565


    To change the temporary directory for the installer, please cancel
    the installer, export GTTEMPDIR=SomeTempDir, and restart the installer.


    Unpacking JRE (Java Runtime Environment) ...
    Unzipping JRE ...
    cdinstall.sh: 403: cdinstall.sh: /media/sarosh/Data/GTIse/resource/gzip/gzip.linux: Permission denied


    Failed to Unzip JRE !!


    Please define GTTEMPDIR env-var to locate a
    temporary install directory (at least 200MB)




    Removing [/media/sarosh/Data/GTIse/GTTEMPD/gt.install.9565] ...


    cdinstall.sh: 418: exit: Illegal number: -1

    why is permission denied ? I have tried with sudo and su

  4. #4
    Join Date
    Mar 2014
    Beans
    38

    Re: How do I set environment variables for .sh installation file?

    GTTEMPD is the temporary directory I wish to use and it is on second local hard drive partition called DATA.

  5. #5
    Join Date
    Mar 2014
    Beans
    38

    Re: How do I set environment variables for .sh installation file?

    I tried copy the GTIse setup folder to /home and running it from there it still says permission denied for gzip.linux. Any help will be greatly appreciated. Thank you.

  6. #6
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I set environment variables for .sh installation file?

    Which site did you get the script from?

  7. #7
    Join Date
    Mar 2014
    Beans
    38

    Re: How do I set environment variables for .sh installation file?

    My friend gave it to me who got it from the University as they dont give out CDs. its the weekend and I need to get this running so cant even seek help from the helpdesk.

  8. #8
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I set environment variables for .sh installation file?

    What is the exact line you are typing that gives you the error? Also what is the output of df -h, to see where there is space?

  9. #9
    Join Date
    Mar 2014
    Beans
    38

    Re: How do I set environment variables for .sh installation file?

    output of dh -f:

    Filesystem Size Used Avail Use% Mounted on
    /dev/sda6 15G 8.3G 5.3G 62% /
    none 4.0K 0 4.0K 0% /sys/fs/cgroup
    udev 1.4G 4.0K 1.4G 1% /dev
    tmpfs 276M 1.3M 275M 1% /run
    none 5.0M 0 5.0M 0% /run/lock
    none 1.4G 484K 1.4G 1% /run/shm
    none 100M 64K 100M 1% /run/user
    /dev/sda5 188G 44G 144G 24% /media/sarosh/Data

    the exact line I am typing is:

    GTTEMPDIR=/media/sarosh/Data/GTIse/GTTEMPD sh cdinstall.sh


    or

    GTTEMPDIR=/media/sarosh/Data/GTIse/GTTEMPD sh ./cdinstall.sh



    same thing for /home directory

    any idea whats wrong ?

  10. #10
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I set environment variables for .sh installation file?

    If it needed sudo then you need to add that. If it is to run as a regular user but you previously ran it using sudo, then there might be some files in the way left over from earlier tries.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •