web stats
Installing Mirth on Ubuntu - A How To - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2018, 06:41 PM
jdalio jdalio is offline
Mirth Newb
 
Join Date: Oct 2013
Posts: 10
jdalio is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 04-24-2018, 03:19 PM
obsessio obsessio is offline
OBX.3 Kenobi
 
Join Date: Mar 2015
Location: Turkey
Posts: 166
obsessio is on a distinguished road
Default

Thank you so much for sharing with us!
Reply With Quote
  #3  
Old 05-15-2018, 05:18 PM
vcarvajal vcarvajal is offline
What's HL7?
 
Join Date: May 2018
Posts: 3
vcarvajal is on a distinguished road
Default

jdalio,
where did you find that URL for the download?
Reply With Quote
  #4  
Old 05-15-2018, 05:21 PM
vcarvajal vcarvajal is offline
What's HL7?
 
Join Date: May 2018
Posts: 3
vcarvajal is on a distinguished road
Default

jdalio,
I get access denied when trying to access the URL from here:
http://downloads.mirthcorp.com/
Reply With Quote
  #5  
Old 05-18-2018, 12:48 PM
vcarvajal vcarvajal is offline
What's HL7?
 
Join Date: May 2018
Posts: 3
vcarvajal is on a distinguished road
Default

For those looking on the current downloads link area:
https://www.nextgen.com/products-and...gine-Downloads
Reply With Quote
  #6  
Old 05-18-2018, 03:45 PM
stormcel stormcel is offline
OBX.3 Kenobi
 
Join Date: Mar 2010
Location: Phoenix
Posts: 160
stormcel is on a distinguished road
Default

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.
Reply With Quote
  #7  
Old 05-20-2018, 10:00 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,028
agermano is on a distinguished road
Default

Why is yum-utils necessary?
Reply With Quote
  #8  
Old 05-26-2018, 06:30 AM
jdalio jdalio is offline
Mirth Newb
 
Join Date: Oct 2013
Posts: 10
jdalio is on a distinguished road
Default

Quote:
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.

http://downloads.mirthcorp.com/archive/connect/
Reply With Quote
  #9  
Old 05-26-2018, 06:34 AM
jdalio jdalio is offline
Mirth Newb
 
Join Date: Oct 2013
Posts: 10
jdalio is on a distinguished road
Default

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).
Reply With Quote
  #10  
Old 05-26-2018, 06:57 AM
jdalio jdalio is offline
Mirth Newb
 
Join Date: Oct 2013
Posts: 10
jdalio is on a distinguished road
Default

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.
Reply With Quote
Reply

Tags
install, mirth, ubuntu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation