{"id":544,"date":"2014-02-06T12:08:21","date_gmt":"2014-02-06T12:08:21","guid":{"rendered":"http:\/\/www.theSQLReport.com\/?p=544"},"modified":"2016-02-23T22:02:40","modified_gmt":"2016-02-23T22:02:40","slug":"installing-node-js-on-oracle-linux-server-oel","status":"publish","type":"post","link":"https:\/\/www.theSQLReport.com\/?p=544","title":{"rendered":"Installing node.js on Oracle Linux Server (OEL)"},"content":{"rendered":"<p>Install node.js is much easier to install on other Linux operating system like\u00a0Ubuntu &amp; Fedora. \u00a0I was challenged to find a way to install node.js on the Oracle Linux Server (OEL). \u00a0Below is the step by step I have pulled together to install node.js on this operating system.<\/p>\n<h3><strong>Before beginning:<\/strong><\/h3>\n<p>The account installing node.js will need to be able to sudo to root.\u00a0\u00a0 In my example below, my Linux account is going to be called \u201cnodejs\u201d.<\/p>\n<h3>On the Server:<\/h3>\n<p>1. Create the directory that will store the node.js files. \u00a0Then change into that directory.<\/p>\n<pre>cd \/; sudo mkdir nodejs; sudo chown nodejs:nodejs nodejs; cd nodejs<\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SetDirectory.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-555\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SetDirectory.jpg\" alt=\"SetDirectory\" width=\"763\" height=\"98\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SetDirectory.jpg 763w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SetDirectory-300x38.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SetDirectory-210x26.jpg 210w\" sizes=\"(max-width: 763px) 100vw, 763px\" \/><\/a><\/p>\n<p>2. To install the node.js, a compiler will be needed.\u00a0 Installing the compiler will twice prompt for input.\u00a0 Answer yes for both, otherwise the &#8220;make install&#8221; process will fail with errors.\u00a0 Depending on the internet connection speed, this process may take five minutes to complete.<\/p>\n<pre>sudo yum install gcc-c++<\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/InstallCompiler.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-552\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/InstallCompiler.jpg\" alt=\"InstallCompiler\" width=\"789\" height=\"180\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/InstallCompiler.jpg 789w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/InstallCompiler-300x68.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/InstallCompiler-210x47.jpg 210w\" sizes=\"(max-width: 789px) 100vw, 789px\" \/><\/a><\/p>\n<p>Below is the first prompt for a response, type y and enter to continue.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/RespondYes.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-554\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/RespondYes.jpg\" alt=\"RespondYes\" width=\"767\" height=\"338\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/RespondYes.jpg 767w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/RespondYes-300x132.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/RespondYes-210x92.jpg 210w\" sizes=\"(max-width: 767px) 100vw, 767px\" \/><\/a><\/p>\n<p>This is the second prompt, again type y and enter to continue.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/AgainRespondYes.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-547\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/AgainRespondYes.jpg\" alt=\"AgainRespondYes\" width=\"767\" height=\"340\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/AgainRespondYes.jpg 767w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/AgainRespondYes-300x132.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/AgainRespondYes-210x93.jpg 210w\" sizes=\"(max-width: 767px) 100vw, 767px\" \/><\/a><\/p>\n<p>Below is a screen shot when this process finishes.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-549\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted.jpg\" alt=\"CompilerInstallCompleted\" width=\"769\" height=\"341\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted.jpg 769w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted-300x133.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted-210x93.jpg 210w\" sizes=\"(max-width: 769px) 100vw, 769px\" \/><\/a><\/p>\n<p>3. Download the compressed install file from nodejs.org.\u00a0 At this writing, the most current version of node.js is v0.10.25.\u00a0 There may be a new version, adjust the link to down load that version.<\/p>\n<pre>wget http:\/\/nodejs.org\/dist\/v0.10.25\/node-v0.10.25.tar.gz<\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/DownloadFiles.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-551\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/DownloadFiles.jpg\" alt=\"DownloadFiles\" width=\"761\" height=\"262\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/DownloadFiles.jpg 761w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/DownloadFiles-300x103.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/DownloadFiles-210x72.jpg 210w\" sizes=\"(max-width: 761px) 100vw, 761px\" \/><\/a><\/p>\n<p>4. Un-compress the down loaded file.\u00a0 Again adjust the file name if working with a more current version.<\/p>\n<pre>tar zxf node-v0.10.25.tar.gz<\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/UncompressFiles.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-558\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/UncompressFiles.jpg\" alt=\"UncompressFiles\" width=\"760\" height=\"102\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/UncompressFiles.jpg 760w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/UncompressFiles-300x40.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/UncompressFiles-210x28.jpg 210w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p>5. Change to the just uncompressed directory.<\/p>\n<pre>cd node-v0.10.25<\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ChangeIntoDirectory.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-548\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ChangeIntoDirectory.jpg\" alt=\"ChangeIntoDirectory\" width=\"757\" height=\"103\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ChangeIntoDirectory.jpg 757w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ChangeIntoDirectory-300x40.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ChangeIntoDirectory-210x28.jpg 210w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/a><\/p>\n<p>6. Execute the configure command.<\/p>\n<pre>.\/configure<\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ConfigureNodeJS.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-550\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ConfigureNodeJS.jpg\" alt=\"ConfigureNodeJS\" width=\"757\" height=\"577\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ConfigureNodeJS.jpg 757w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ConfigureNodeJS-300x228.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/ConfigureNodeJS-210x160.jpg 210w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/a><\/p>\n<p>7. Run the \u201cmake install\u201d command.\u00a0 This process will take about five minutes to run.<\/p>\n<pre>sudo make install<\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SudoMakeInstall.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-557\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SudoMakeInstall.jpg\" alt=\"SudoMakeInstall\" width=\"758\" height=\"85\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SudoMakeInstall.jpg 758w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SudoMakeInstall-300x33.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/SudoMakeInstall-210x23.jpg 210w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/a><\/p>\n<p>Below is a screen shot when this process finishes.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-549\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted.jpg\" alt=\"CompilerInstallCompleted\" width=\"769\" height=\"341\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted.jpg 769w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted-300x133.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/CompilerInstallCompleted-210x93.jpg 210w\" sizes=\"(max-width: 769px) 100vw, 769px\" \/><\/a><\/p>\n<p>7. Check to see if node.js was installed successful.\u00a0 Run the node command to see the current version.\u00a0 If the version is returned, then the server is ready to run node.js.<\/p>\n<pre>node \u2013version<\/pre>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/Successful.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-556\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/Successful.jpg\" alt=\"Successful\" width=\"758\" height=\"117\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/Successful.jpg 758w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/Successful-300x46.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2014\/02\/Successful-210x32.jpg 210w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/a><\/p>\n<p>Now you should be able to use node to run your java scripts.<\/p>\n<p>Final Note:<\/p>\n<p>This blog is a compilation of many message-boards and a lot of trial &amp; error.\u00a0 Many of the methods I attempted did not work on Oracle Linux Server.\u00a0 If there is a better or fast method available, please let me know in the comments below.\u00a0 I will either update this blog, or remove this writing &amp; link to the better writing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install node.js is much easier to install on other Linux operating system like\u00a0Ubuntu &amp; Fedora. \u00a0I was challenged to find a way to install node.js on the Oracle Linux Server &hellip; <a class=\"readmore\" href=\"https:\/\/www.theSQLReport.com\/?p=544\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":559,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[14,13,12],"class_list":["post-544","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-install","tag-linux-2","tag-node-js"],"_links":{"self":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/544"}],"collection":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=544"}],"version-history":[{"count":14,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/544\/revisions"}],"predecessor-version":[{"id":784,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/544\/revisions\/784"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/media\/559"}],"wp:attachment":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}