[Postgres-xl-general] 答复: pgxc_ctl doesn't work on my mac

Krzysztof Nienartowicz krzysztof.nienartowicz at unige.ch
Thu Dec 10 01:54:51 PST 2015


Good to know XL works on OSX! Good luck.

On Thu, Dec 10, 2015 at 2:08 AM, 李鹏 <lipeng at highgo.com> wrote:

> Thank you Pavan and Krzysztof
>
> I finally sovled this problem!
> In pgxc_ctl, it calls   ssh name at ip "gtm_ctl" and that will report can
> not find gtm_ctl command.
> Then i input ssh name at ip "env | grep PATH",i find $PATH is not correct.
> As Pavan said,i just set $PATH in ~/.bash_profile but not in ~/.bashrc.
> In OSX’s terminal,it runs a login shell by default for each new terminal
> window, calling .bash_profile instead of .bashrc.
> I set $PATH in ~/.bashrc and add 'source ~/.bashrc' in ~/.bash_profile.
> It works.
>
> More informations about .bashrc and .bash_profile,please visit:
> http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
>
> Best Wishes
> lipeng
>
> ------------------------------
> *发件人:* Pavan Deolasee <pavan.deolasee at gmail.com>
> *发送时间:* 2015年12月9日 22:22
> *收件人:* Krzysztof Nienartowicz
> *抄送:* 李鹏; postgres-xl-general at lists.sourceforge.net
> *主题:* Re: [Postgres-xl-general] pgxc_ctl doesn't work on my mac
>
>
>
> On Wed, Dec 9, 2015 at 7:46 PM, Krzysztof Nienartowicz <
> krzysztof.nienartowicz at unige.ch> wrote:
>
>> Hello,
>> It would be surprising if it would. Use VM if you want to test it..
>>
>
> Oh well, I do all my development and testing on Mac OSX :-)
>
>>
>>>
>>> My gtm_ctl is under /usr/local/pgsql/bin and my
>>> $PATH=/usr/local/pqsql/bin:$PATH.
>>> If i input gtm_ctl in my terminal,it works correctly.
>>> Why pgxc_ctl can not find gtm_ctl???
>>>
>>>
> Have you set PATH correctly in ~/.bashrc ?
>
> Thanks,
> Pavan
>
>
>>
>
> --
>  Pavan Deolasee                   http://www.2ndQuadrant.com/
>  PostgreSQL Development, 24x7 Support, Training & Services
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Postgres-xl-general mailing list
> Postgres-xl-general at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/postgres-xl-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.postgres-xl.org/pipermail/postgres-xl-general-postgres-xl.org/attachments/20151210/8aa62d71/attachment.htm>


More information about the postgres-xl-general mailing list