<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">---------- Missatge reenviat ----------<br>From:&nbsp;&quot;Robert Longbottom&quot; &lt;<a href="mailto:RobertCL@iname.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

RobertCL@iname.com</a>&gt;<br>To:&nbsp;&quot;Discussion about mythtv&quot; &lt;<a href="mailto:mythtv-users@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-users@mythtv.org</a>&gt;<br>
Date:&nbsp;Mon, 30 Apr 2007 12:53:05 +0100 (BST)<br>Subject:&nbsp;Re: [mythtv-users] Error installing &#39;mythweb&#39;
<br>On Mon, April 30, 2007 11:37 am, Eduard Huguet wrote:<br>&gt; Hi,<br>&gt; &nbsp; &nbsp; I&#39;m just trying to upgrade MythTV from 0.20 to 0.20.1 on my<br>&gt; Gentoo-based<br>&gt; machine (Sabayon, really), and I&#39;m getting this strange error while trying
<br>&gt; to emerge lastest mythweb (the other packages installed ok):<br><br>&lt;snip&gt;<br><br>&gt; * Fatal error:<br>&gt; * Fatal error: There is a problem with your configuration file.<br>&gt; * Fatal error: webapp-config tried to read the variable &quot;config_protect&quot;
<br>&gt; * Fatal error: and received the following error:<br>&gt; * Fatal error:<br>&gt; * Fatal error: Bad value substitution:<br>&gt; * Fatal error: &nbsp;section: [USER]<br>&gt; * Fatal error: &nbsp;option : config_protect<br>&gt; * Fatal error: &nbsp;key &nbsp; &nbsp;: nxdir
<br>&gt; * Fatal error: &nbsp;rawval : /etc ${NXDIR}/home /etc /usr/kde/3.5/env<br>&gt; /usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm/<br>&gt; /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config<br>&gt; * Fatal error:
<br>&gt; * Fatal error: Please note that webapp-config is not written in bash<br>&gt; anymore<br>&gt; * Fatal error: and that you cannot use the bash scripting features.<br>&gt; * Fatal error(s) - aborting<br>&gt;<br><br>

I&#39;m no expert (but I am a Gentoo user) - reading this message, it looks<br>like it doesn&#39;t like the value of &quot;config-protect&quot;, which is something to<br>do with which directories contain config files (eg /etc) and should be
<br>updated via rc-update. &nbsp;The message says you can no longer &quot;use bash<br>features&quot;, and your &quot;rawval&quot; contains &quot;${NXDIR}/home&quot;. &nbsp;As a total stab in<br>the dark, I&#39;d say this is the problem - bash would expand ${NXDIR} to a
<br>real path, maybe the new webapp-config can&#39;t do this.<br><br>Do you know where ${NXDIR} has come from? &nbsp;Does it sound like any package<br>you have installed might have added it? &nbsp;Maybe try remove this package (or
<br>
upgrade it) and try mythweb again.<br><br>For reference &#39;emerge --info&#39; on my gentoo mythbox reports:<br><br>CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config<br>/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config
<br>/var/qmail/alias /var/qmail/control&quot;<br><br>Which doesn&#39;t contain ${NXDIR} - so it must be something you installed.<br>I&#39;ve no idea how this is set, but it might be somewhere to start. &nbsp;(or it<br>might be a wild goose chase!
<br><br>Otherwise you get a more useful answer asking on a Gentoo list, as I think<br>this looks like more of a Gentoo problem than a MythTV problem to me....<br><br><br>Robert.<br></blockquote></div><br>Thanks, you were right. It was the NXDIR environment variable not being expanded. It seems it was added by NX server (freenx version), which it wasn&#39;t working properly any way. So unmerging it deleted that variable and I could install &#39;mythweb&#39; succesfully.
<br><br>Now if only I could store my session settings for it... For some unknown reason this stopped working some time ago and I&#39;ve been unable to get it back.<br><br>Cheers and thank you very much for your quick help, 
<br><span class="sg">&nbsp; Eduard<br><br>
</span>