{"id":436,"date":"2015-01-27T21:00:49","date_gmt":"2015-01-27T20:00:49","guid":{"rendered":"http:\/\/www.psinke.nl\/blog\/?p=436"},"modified":"2015-01-27T14:10:52","modified_gmt":"2015-01-27T13:10:52","slug":"fix-all-your-cannot-open-shared-object-file-problems-in-linux","status":"publish","type":"post","link":"https:\/\/www.psinke.nl\/blog\/fix-all-your-cannot-open-shared-object-file-problems-in-linux\/","title":{"rendered":"Fix all your &#8220;cannot open shared object file&#8221; problems in Linux"},"content":{"rendered":"<div class=\"afa2b3b851443650502c43e85c746c1f\" data-index=\"1\" style=\"float: none; margin:0px;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-4223201538046844\";\r\n\/* standaardblok *\/\r\ngoogle_ad_slot = \"9522527129\";\r\ngoogle_ad_width = 320;\r\ngoogle_ad_height = 50;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>After installing Oracle XE on Linux, and especially Ubuntu, you might find yourself with issues opening SQL*Plus and other tools.<\/p>\n<p><strong><span style=\"color: #ff6600;\"><em>&#8220;sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory&#8221;<\/em><\/span><\/strong><\/p>\n<p>There are many possible reasons for that, so check the following:<\/p>\n<h3>Set your paths correctly<\/h3>\n<p>Perform the commands:<\/p>\n<pre>oracle@VirtualBox:~$ echo $ORACLE_HOME\r\n\/home\/oracle\/app\/oracle\/product\/11.2.0\/dbhome_1\r\noracle@VirtualBox:~$ \u00a0echo $LD_LIBRARY_PATH\r\n\/home\/oracle\/app\/oracle\/product\/11.2.0\/dbhome_1\/lib<\/pre>\n<p>If these are empty, go to your Oracle home and enter:<\/p>\n<pre>sudo .\/root.sh<\/pre>\n<p>This wil set all the environment variables. Sometimes you get the error<\/p>\n<pre>.\/root.sh: 1: \/home\/oracle\/app\/oracle\/product\/11.2.0\/dbhome_1\/install\/utl\/rootmacro.sh: <strong>\/bin\/awk: not found<\/strong>\r\n.\/root.sh: 1: \/home\/oracle\/app\/oracle\/product\/11.2.0\/dbhome_1\/install\/utl\/rootmacro.sh: \/bin\/awk: not found\r\n.\/root.sh: 127: [: !=: unexpected operator<\/pre>\n<p>When this happens, enter &#8220;which awk&#8221;\u00a0 to find the path where awk is located, edit the file &lt;Oracle_home&gt;\/install\/utl\/rootmacro.sh, look for the line<br \/>\nAWK=\/bin\/awk<br \/>\nAnd replace the path with the output from the &#8220;which awk&#8221; command.<\/p>\n<p>Now all your paths and environment settings should be correct.<\/p>\n<p>If not, this might me a good time to reinstall the database software. Chances are some files are corrupted.<\/p>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>After installing Oracle XE on Linux, and especially Ubuntu, you might find yourself with issues opening SQL*Plus and other tools. &#8220;sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory&#8221; There are many possible reasons for that, so check the following: Set your paths correctly Perform the commands:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[349,348,351,346,102,6,350,347,345,104],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-oracle-blog","tag-binawk-not-found","tag-cannot-open-shared-object-file","tag-ld_library_path","tag-libclntsh-so-11-1","tag-linux","tag-oracle","tag-oracle_home","tag-shared-libraries","tag-sqlplus","tag-ubuntu"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":2,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":438,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/436\/revisions\/438"}],"wp:attachment":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}