git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git pull works remotely but not locally

From
IUIvan Uemlianin <ivan@llaisdy.com>
Date
May 28, 2010, 08:24 UTC
Message-ID
<4BFF7DC7.6030806@llaisdy.com>
In-Reply-To
<201005272153.54239.j6t@kdbg.org>
Dear Hannes

Yes, you have pinpointed it. I installed as root, but I thought I had followed the other instructions (using ./configure) and did

    # make configure
    # ./configure --prefix=/opt
    # make
    # make install

In any case, I have deleted everything and reinstalled properly. Now git pull is working as it should.

Thank you all for your patience and help.
Best wishes
Ivan
On 27/05/2010 20:53, Johannes Sixt wrote:
Show 29 quoted lines
> On Donnerstag, 27. Mai 2010, Ivan Uemlianin wrote:
>    
>> - I did configure with prefix=/opt
>> - odd thing: nothing was installed into /opt: it all went into /root (I
>> might have been root for the whole process, which I know is bad).  I
>> just cp'd everything over to /opt, and everything worked OK (until now).
>>      
> My guess is:
>
> - You built as root.
> - I don't know what went wrong with the command that involved prefix=/opt.
> - But when you finally build using 'make', it picked the default prefix, which
> is /root when you are root.
> - This hard-codes the libexec path to /root/libexec/git-core.
> - Even after you copy the stuff to /opt, git looks in /root/libexec/...
> - As a normal user you do not have access to /root, ergo, Permission denied.
>
> Rebuild as normal user with
>
>     make prefix=/opt
>
> and install as root with
>
>     make prefix=/opt install
>
> (Yes, prefix must be given also for 'make install'.)
>
> -- Hannes
>    
-- 
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development

                     ivan@llaisdy.com
                      www.llaisdy.com
                          llaisdy.wordpress.com
                      www.linkedin.com/in/ivanuemlianin

     "Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
                      (Schiller, Beethoven)
============================================================
Previous: Johannes SixtNext: Ramkumar Ramachandra
Message 16 of 17 in “git pull works remotely but not locally”
  1. Ivan UemlianinMay 27, 2010
  2. Ramkumar RamachandraMay 27, 2010
  3. Ivan UemlianinMay 27, 2010
  4. Sverre RabbelierMay 27, 2010
  5. Ivan UemlianinMay 27, 2010
  6. Jeff KingMay 27, 2010
  7. Ivan UemlianinMay 27, 2010
  8. Johannes SixtMay 27, 2010
  9. Ivan UemlianinMay 27, 2010
  10. Jeff KingMay 27, 2010
  11. Ivan UemlianinMay 27, 2010
  12. Ilari LiusvaaraMay 27, 2010
  13. Ramkumar RamachandraMay 27, 2010
  14. Ivan UemlianinMay 27, 2010
  15. Johannes SixtMay 27, 2010
  16. Ivan UemlianinMay 28, 2010
  17. Ramkumar RamachandraMay 27, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.