<div>Thanks, Francois! </div><div><br></div><div>To define a permanent variable and source it in bashrc. That&#39;s really a good idea. </div><div>But Ralf&#39;s suggestion seems more amazing, why and how does the order of source command in .bashrc affect? I am wondering. </div>
<div> </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br><div class="gmail_quote">On Thu, Jul 21, 2011 at 11:29 AM, Francois Berenger <span dir="ltr">&lt;<a href="mailto:berenger@riken.jp">berenger@riken.jp</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have this in my .bashrc, I use the command phenix_setup<br>
only before I start using phenix:<br>
<br>
---<br>
# to use locally installed phenix<br>
function phenix_setup() {<br>
    PHENIX_ENV=\<br>
/usr/local/phenix-dev/phenix-<u></u>dev-756/phenix-dev-756/phenix_<u></u>env.sh<br>
    if [ -f $PHENIX_ENV ]; then<br>
        source $PHENIX_ENV<br>
    fi<br>
}<br>
---<br>
<br>
I use the same kind of trick for CCP4.<br>
<br>
PS: You need to adapt this code to where your<br>
    phenix_env.sh is installed.<div class="im"><br>
<br>
On 07/21/2011 06:20 PM, G P wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi Ralf,<br>
<br>
Thanks a lot for your help. I changed the order and it works now. But I<br>
am wondering why? Is that means the .bashrc script will read lines from<br>
down to up which allow it to see the line of source for phenix first?<br>
<br>
Thanks a lot again!<br>
<br>
cheers,<br>
GP<br>
<br>
On Wed, Jul 20, 2011 at 10:35 PM, Ralf Grosse-Kunstleve<br></div><div class="im">
&lt;<a href="mailto:rwgrosse-kunstleve@lbl.gov" target="_blank">rwgrosse-kunstleve@lbl.gov</a> &lt;mailto:<a href="mailto:rwgrosse-kunstleve@lbl.gov" target="_blank">rwgrosse-kunstleve@<u></u>lbl.gov</a>&gt;&gt; wrote:<br>

<br>
    Hopefully, all you need to do is source phenix_env last.<br>
    E.g. look in your .cshrc or .bashrc file with the phenix and ccp4<br>
    source commands.<br>
    Reorder the commands so that phenix comes after the ccp4 command.<br>
    Then open a new shell and run &quot;phenix.phaser params.eff&quot; again.<br>
    Could you try that?<br>
    (I recommend against copying files from the phenix to the ccp4 tree.)<br>
    Ralf<br>
<br>
    On Wed, Jul 20, 2011 at 11:21 AM, G P &lt;<a href="mailto:gysubscribe@gmail.com" target="_blank">gysubscribe@gmail.com</a><br></div><div class="im">
    &lt;mailto:<a href="mailto:gysubscribe@gmail.com" target="_blank">gysubscribe@gmail.com</a>&gt;<u></u>&gt; wrote:<br>
<br>
        Dear all,<br>
<br>
        It&#39;s long story:<br>
<br>
        At beginning, I have phenix installed. I do not have CCP4<br>
        installed. Then I run &quot;phenix.phaser params.eff&quot; to call phenix<br>
        run phaser from script params.eff. It works well.<br>
        Then, I installed CCP4 with its own phaser inside. Then I run<br>
        again &quot;phenix.phaser params.eff&quot;. The computer start to import<br>
        files (should be some libraries and supporting files, not input<br>
        data) from CCP4 installation directory. It seems so strange for me.<br>
<br>
        And because some of the .so files in CCP4 directory are for<br>
        32bit, phenix.phaser gave me error message: wrong ELF class:<br>
        ELFCLASS32 and refused to keep running. I guess I could solve<br>
        this problem by copying the same .so file in phenix directory<br>
        into CCP4&#39;s directory.<br>
<br>
        What I really want to know is why this happen. Is that the<br>
        installation of CCP4 changed some kinds of PATH variables for<br>
        phenix? How could I fix by giving a right path again?<br>
<br>
        I would appreciate to any help. Thanks a lot guys!<br>
<br>
        Best regards,<br>
        GP<br>
<br>
<br>
        ______________________________<u></u>_________________<br>
        phenixbb mailing list<br></div>
        <a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a> &lt;mailto:<a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-<u></u>online.org</a>&gt;<div class="im">
<br>
        <a href="http://phenix-online.org/mailman/listinfo/phenixbb" target="_blank">http://phenix-online.org/<u></u>mailman/listinfo/phenixbb</a><br>
<br>
<br>
<br>
    ______________________________<u></u>_________________<br>
    phenixbb mailing list<br></div>
    <a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a> &lt;mailto:<a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-<u></u>online.org</a>&gt;<div class="im">
<br>
    <a href="http://phenix-online.org/mailman/listinfo/phenixbb" target="_blank">http://phenix-online.org/<u></u>mailman/listinfo/phenixbb</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
phenixbb mailing list<br>
<a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/phenixbb" target="_blank">http://phenix-online.org/<u></u>mailman/listinfo/phenixbb</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
______________________________<u></u>_________________<br>
phenixbb mailing list<br>
<a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/phenixbb" target="_blank">http://phenix-online.org/<u></u>mailman/listinfo/phenixbb</a><br>
</div></div></blockquote></div><br></div>