<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tork Wrench &#187; debian</title>
	<atom:link href="http://www.torkwrench.com/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.torkwrench.com</link>
	<description>Things I learnt today, working on IBM Lotus Web Content Management.</description>
	<lastBuildDate>Tue, 17 Aug 2010 06:50:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Getting WebSphere Portal to install on Ubuntu</title>
		<link>http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/</link>
		<comments>http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/#comments</comments>
		<pubDate>Mon, 04 May 2009 04:32:20 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[6.0]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[Portal 6.1]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[WebSphere Application Server]]></category>
		<category><![CDATA[WebSphere Portal]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=52</guid>
		<description><![CDATA[Portal 6.1 will not install on Ubuntu out of the box. Here's how to fix it. <a href="http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, ok, I know Ubuntu isn&#8217;t supported by IBM, but if you&#8217;re a developer, and you run Ubuntu on your laptop and would like to run Portal on there too, here&#8217;s how you do it. This should work for Debian too . I guess this isn&#8217;t really a Portal only problem, rather it&#8217;s a general Application Server + Ubuntu issue.  I&#8217;ve only tried this with 6.1, but it is probably an issue with 6.0 as well, since it uses similar profile creation code.</p>
<p>For some reason Ubuntu, ships a shell called &#8216;dash&#8217; as their default, rather than good old bash. <a href="https://wiki.ubuntu.com/DashAsBinSh">(Well, they have their reasons.) </a> This presents a problem for App Server, as all the scripts in AppServer/bin use #!/bin/sh (the Bourne shell) as their command interpreter, which on a Redhat machine is symlinked to /bin/bash . The reason why AppServer uses the Bourne shell is that it needs to work on AIX and Solaris too, and you can&#8217;t be sure that you have bash on one of those machines.</p>
<p>If you try to call wsadmin.sh on an Ubuntu system you get this error :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/opt/WebSphere/AppServer/bin/wsadmin.sh: 116: Bad substitution</div></div>
<p>Now, when you&#8217;re installing Portal, it installs AppServer, and then calls the manageprofile.sh script to create the default profile for Portal  &#8220;wp_profile&#8221; . Manageprofile.sh calls a bunch of ant scripts that needs to use wsadmin.sh (you can see where I&#8217;m going here&#8230;.) .  You might notice in AppServer/log/wp_profile_create.log messages like this :</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;message&gt;Checking for wsadmin listener initialization&lt;/message&gt;<br />
&lt;message&gt;Is wsadmin listener available? ? false&lt;/message&gt;<br />
&lt;message&gt;Returning with returnCode=-1&lt;/message&gt;<br />
&lt;message&gt;Failure detected in fatal config action.&lt;/message&gt;<br />
&lt;message&gt;wsadmin failed with exception = wsadmin task failed with return code :-1&lt;/message&gt;</div></div>
<p>It actually hangs for 20 minutes waiting for wsadmin to start! </p>
<p>So how do you fix it? Simply, before you install it, unlink /bin/sh -> /bin/dash , and relink so it reads /bin/sh -> /bin/bash</p>
<p>Carefully:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /bin<br />
unlink sh<br />
ln -s /bin/bash sh</div></div>
<p>Now the install should run properly. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
