Installing Mirth on Ubuntu - A How To

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jdalio
    Mirth Newb
    • Oct 2013
    • 10

    Installing Mirth on Ubuntu - A How To

    Hi all. I recently set up Mirth for a client on Ubuntu and thought I would share these very simple instructions as this forum has always been so helpful for me.

    --everything as root
    sudo -su root

    --install yum to download java openjdk
    apt install yum-utils

    --download java openjdk
    sudo apt-get install openjdk-8-jre

    --Mirth Basic Installation

    --verify it is openjdk 1.8.0_xxx
    java -version

    --add this to /etc/environment
    --not a fan of this as to future upgrades
    --while it will be backwards compatible this enviornmental variable
    --should be maintained with java upgrades or process improved by the Ubuntu Admin
    JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"

    --restart to activate enviornment variable
    /sbin/shutdown -r now

    --go back to root
    sudo -su root

    --changing to home folder (in my case jason so change accordingly) so I know where the proceeding download will be
    cd /home/jason

    --download specific mirth download file (or retrive latest download file from site)
    wget http://downloads.mirthcorp.com/conne...94-unix.tar.gz

    --unzip mirth download (update filename as necessary)
    tar xvfz mirthconnect-3.5.1.b194-unix.tar.gz

    --copy mirth software to an appropriate folder
    mv Mirth\ Connect/ /opt/mirthconnect

    --cleanup download (update filename as necessary)
    rm mirthconnect-3.5.1.b194-unix.tar.gz

    --start mcservice
    /opt/mirthconnect/mcservice start

    --verify status
    /opt/mirthconnect/mcservice status

    -verify 8080 in broswer
    dg1.hdcbc.ca:8080

    --verify 8443 in broswer
    dg1.hdcbc.ca:8443

    --set to automatic service startup
    --this needs to be defined by the Ubuntu admin
  • obsessio
    Mirth Guru
    • Mar 2015
    • 187

    #2
    Thank you so much for sharing with us!

    Comment

    • vcarvajal
      What's HL7?
      • May 2018
      • 3

      #3
      jdalio,
      where did you find that URL for the download?

      Comment

      • vcarvajal
        What's HL7?
        • May 2018
        • 3

        #4
        jdalio,
        I get access denied when trying to access the URL from here:

        Comment

        • vcarvajal
          What's HL7?
          • May 2018
          • 3

          #5
          For those looking on the current downloads link area:

          Comment

          • stormcel
            Mirth Guru
            • Mar 2010
            • 176

            #6
            AFAIK you are supposed to use oracle java and not openjdk.
            I remember in the past that it was an issue and that we were required to use the 'official' java release or face problems with the program.

            That being said, here is my ubuntu procedure alteration:

            -----Check Java version make sure it is 8.
            Code:
             java -version
            it should say something like:

            Code:
            java version "1.8.0_151"
            Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
            Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
            If it says 'OpenJDK' or some other java flavor, get the official release with the following:

            Code:
            	sudo add-apt-repository ppa:webupd8team/java
            	sudo apt-get update
            	sudo apt-get install oracle-java8-installer
            	check with java -version
            The recent installer I used was the script mirthconnect-3.5.2.b204-unix.sh
            Just run it and follow the prompts.

            Comment

            • agermano
              Mirth Guru
              • Apr 2017
              • 1496

              #7
              Why is yum-utils necessary?

              Comment

              • jdalio
                Mirth Newb
                • Oct 2013
                • 10

                #8
                Originally posted by vcarvajal View Post
                jdalio,
                where did you find that URL for the download?
                Found the link under this URL. If you want to a different version then the one I used copy the proper link and replace.

                Comment

                • jdalio
                  Mirth Newb
                  • Oct 2013
                  • 10

                  #9
                  You cannot do apt-get install openjdk-8-jre unless you have yum. You can do it manually if you wish to skip installing (not sure why anyone would not do yum as it is, IMO as a primary Windows based person, one of the best features of Linux).

                  Comment

                  • jdalio
                    Mirth Newb
                    • Oct 2013
                    • 10

                    #10
                    I've read similar posts stormcel. A the time I wrote this Connect WOULD NOT work with (at least on my system) with oracle java and I had to use openJDK. I also could not get the .sh script to work but I was installing on AWS, new to me, so the above is what got me up and going. I recommend stormcel's comments for the .sh and oracle java but for me it just didn't work.

                    Comment

                    • jdalio
                      Mirth Newb
                      • Oct 2013
                      • 10

                      #11
                      Originally posted by stormcel View Post
                      AFAIK you are supposed to use oracle java and not openjdk.
                      I remember in the past that it was an issue and that we were required to use the 'official' java release or face problems with the program.

                      That being said, here is my ubuntu procedure alteration:

                      -----Check Java version make sure it is 8.
                      Code:
                       java -version
                      it should say something like:

                      Code:
                      java version "1.8.0_151"
                      Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
                      Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
                      If it says 'OpenJDK' or some other java flavor, get the official release with the following:

                      Code:
                      	sudo add-apt-repository ppa:webupd8team/java
                      	sudo apt-get update
                      	sudo apt-get install oracle-java8-installer
                      	check with java -version
                      The recent installer I used was the script mirthconnect-3.5.2.b204-unix.sh
                      Just run it and follow the prompts.

                      I was evidently running from old instructions the last time I tried this and the .sh didn't work. I just removed my Java, JAVA_HOME env variable and Mirth Connect. Re-installed open java via:

                      sudo apt-get install oracle-java8-installer

                      Then installed Mirth via:

                      sh ./mirthconnect-3.5.1.b194-unix.sh

                      Rebooted server. All good. So no need to set the JAVA_HOME anymore. Wish Mirth would update their online documentation dated 2013. Thanks man.

                      Comment

                      • agermano
                        Mirth Guru
                        • Apr 2017
                        • 1496

                        #12
                        Originally posted by jdalio View Post
                        You cannot do apt-get install openjdk-8-jre unless you have yum. You can do it manually if you wish to skip installing (not sure why anyone would not do yum as it is, IMO as a primary Windows based person, one of the best features of Linux).
                        You absolutely can do apt-get install openjdk-8-jre without yum. apt is the package management tool in ubuntu/debian. yum is the redhat/fedora/centos tool.

                        Comment

                        Working...
                        X