From: | Augori <augori(at)gmail(dot)com> |
---|---|
To: | |
Cc: | pgsql <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Trouble installing psycopg2 |
Date: | 2013-09-29 17:15:48 |
Message-ID: | CAFE+72PgPfZne3RLNRO5SDwF-JuJC+aeeGojKJFuSQ4h_=0czQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
No, sorry. I just checked that again and I can yum. I guess I remembered
that incorrectly.
But the thing is, I'm worried that I have all this stuff set up and working
--postgresql, virtualenv, psycopg2 in root; then if I try another install
under joshmoe it could cause even more more chaos.
On Sun, Sep 29, 2013 at 1:01 PM, Augori <augori(at)gmail(dot)com> wrote:
> You're right, I installed the virtualenv as user root into /root.
>
> The reason for this is that I can't run 'yum' and probably many of the
> other commands from joshmoe, so I gave up on that route. But I'm open for
> suggestions...do you think it would be better to try to get access to these
> commands?
>
>
> On Sun, Sep 29, 2013 at 12:46 PM, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>wrote:
>
>> On 09/29/2013 09:38 AM, Augori wrote:
>>
>>> Thanks to Adrian for pointing to this site.
>>> http://toomuchdata.com/2012/**06/25/how-to-install-python-2-**
>>> 7-3-on-centos-6-2/<http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/>
>>> I was able to get the virtual environment set up and install psycopg2
>>> from there. Now things seem to be working well when I'm logged in as
>>> root.
>>>
>>> But I need to be able to use the virtualenv as a non-root user, joshmoe.
>>> (And start/stop postgresql as this other user)
>>>
>>
>> I've found a good many examples of sudoer statements. But I can't
>>> figure out the syntax that will make this work. I'm hoping once I get
>>> this one, I'll be able to give access to statements like 'service
>>> postgresql status' and so forth.
>>>
>>
>>
>> Looks to me you installed the virtualenv as user root into /root. Why not
>> install the virtualenv as joshme into /joshme? Then you avoid the sudo
>> problems all together. It also one of the benefits of virtualenv you can
>> run programs as an ordinary user and not make them system wide.
>>
>>
>> --
>> Adrian Klaver
>> adrian(dot)klaver(at)gmail(dot)com
>>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2013-09-29 17:17:33 | Re: multiple databases vs multiple clusters on the same host |
Previous Message | Augori | 2013-09-29 17:01:42 | Re: Trouble installing psycopg2 |