{"thread":{"id":"38231","subject":"Question about installing git from source","startedAt":"2014-12-23T08:55:06Z","lastAt":"2014-12-24T07:52:09Z","messageCount":6,"participants":["Alexander Kuleshov","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"253994","messageId":"CANCZXo42SdM8hMdTFYgvD8D+RmXua1oJvB+FfTjjfR=yWqhmkg@mail.gmail.com","threadId":"38231","inReplyTo":null,"subject":"Question about installing git from source","fromName":"Alexander Kuleshov","fromEmail":"kuleshovmail@gmail.com","sentAt":"2014-12-23T08:55:06Z","receivedAt":"2014-12-23T08:55:06Z","isPatch":false,"sender":{"key":"kuleshovmail@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2699235?v=4"},"body":"Hello All,\n\nTrying to install git from source, executing:\n\nmake configure\n./configure --prefix=/usr\nmake --prefix=/usr all\nsudo make install DISTDIR=/usr\n\nAnd getting following:\n\ninstall -d -m 755 '/usr/usr/bin'\nCopying scripts to /usr/bin\ncp: omitting directory ‘autom4te.cache’\ncp: omitting directory ‘bin-wrappers’\ncp: omitting directory ‘block-sha1’\ncp: omitting directory ‘builtin’\ncp: omitting directory ‘compat’\ncp: omitting directory ‘contrib’\ncp: omitting directory ‘Documentation’\ncp: omitting directory ‘ewah’\ncp: omitting directory ‘git-gui’\ncp: omitting directory ‘gitk-git’\ncp: omitting directory ‘gitweb’\ncp: omitting directory ‘mergetools’\ncp: omitting directory ‘perl’\ncp: omitting directory ‘po’\ncp: omitting directory ‘ppc’\ncp: omitting directory ‘t’\ncp: omitting directory ‘templates’\ncp: omitting directory ‘vcs-svn’\ncp: omitting directory ‘xdiff’\nDone\n\nWhat's problem can be here?\n\nThank you.\n"},{"id":"254016","messageId":"xmqqioh247th.fsf@gitster.dls.corp.google.com","threadId":"38231","inReplyTo":"CANCZXo42SdM8hMdTFYgvD8D+RmXua1oJvB+FfTjjfR=yWqhmkg@mail.gmail.com","subject":"Re: Question about installing git from source","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-12-23T17:03:38Z","receivedAt":"2014-12-23T17:03:38Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Alexander Kuleshov <kuleshovmail@gmail.com> writes:\n\n> Trying to install git from source, executing:\n>\n> make configure\n> ./configure --prefix=/usr\n> make --prefix=/usr all\n> sudo make install DISTDIR=/usr\n\nThat does not seem to match any of the ways how INSTALL tells us to\nbuild and install.\n\nExcerpts from INSTALL\n\n    (1) ... If you want to do a global install, you can do\n\n        $ make prefix=/usr all doc info ;# as yourself\n        # make prefix=/usr install install-doc install-html install-info ;# as root\n\nNote how \"prefix\" is spelled.\n\n   (2) Alternatively you can use autoconf generated ./configure\n       script to set up install paths (via config.mak.autogen), so\n       you can write instead\n\n        $ make configure ;# as yourself\n        $ ./configure --prefix=/usr ;# as yourself\n        $ make all doc ;# as yourself\n        # make install install-doc install-html;# as root\n\nNote how \"make\" does not have any \"prefix\".\n\nAlso when you install to a temporary directory so that you can tar\nup the resulting hierarchy, the variable to use is spelled DESTDIR,\ne.g.\n\n\tmake DESTDIR=/var/tmp/git-2.2.1 install install-doc\n\n> ...\n> What's problem can be here?\n\nHopefully the above would be a good start to help you figure that\nout.\n"},{"id":"254018","messageId":"CANCZXo4daZffQ7binFpHBy9adKKeuwHuR5VRixXUowMdgAdhTQ@mail.gmail.com","threadId":"38231","inReplyTo":"xmqqioh247th.fsf@gitster.dls.corp.google.com","subject":"Re: Question about installing git from source","fromName":"Alexander Kuleshov","fromEmail":"kuleshovmail@gmail.com","sentAt":"2014-12-23T17:13:54Z","receivedAt":"2014-12-23T17:13:54Z","isPatch":false,"sender":{"key":"kuleshovmail@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2699235?v=4"},"body":"Hell Junio,\n\nLook I download git from master, executed following:\n\nmake configure\nmake prefix=/usr all\nsudo make prefix=/usr install\n\nAnd got the same during installing:\n\n~/dev/git $ sudo make prefix=/usr install\n    GEN perl/PM.stamp\n    SUBDIR perl\n/usr/bin/perl Makefile.PL PREFIX='/usr' INSTALL_BASE=''\n--localedir='/usr/share/locale'\nGenerating a Unix-style perl.mak\nWriting perl.mak for Git\nWriting MYMETA.yml and MYMETA.json\n    GEN git-add--interactive\n    GEN git-difftool\n    GEN git-archimport\n    GEN git-cvsexportcommit\n    GEN git-cvsimport\n    GEN git-cvsserver\n    GEN git-relink\n    GEN git-send-email\n    GEN git-svn\n    GEN git-p4\n    SUBDIR gitweb\n    SUBDIR ../\nmake[2]: 'GIT-VERSION-FILE' is up to date.\n    GEN git-instaweb\n    SUBDIR git-gui\n    SUBDIR gitk-git\n    SUBDIR perl\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/Prompt.pm >blib/lib/Git/SVN/Prompt.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/Editor.pm >blib/lib/Git/SVN/Editor.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/Fetcher.pm >blib/lib/Git/SVN/Fetcher.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/Utils.pm >blib/lib/Git/SVN/Utils.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/Log.pm >blib/lib/Git/SVN/Log.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/Memoize/YAML.pm >blib/lib/Git/SVN/Memoize/YAML.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN.pm >blib/lib/Git/SVN.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/Migration.pm >blib/lib/Git/SVN/Migration.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/IndexInfo.pm >blib/lib/Git/IndexInfo.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/GlobSpec.pm >blib/lib/Git/SVN/GlobSpec.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/SVN/Ra.pm >blib/lib/Git/SVN/Ra.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\" <Git.pm\n>blib/lib/Git.pm\n/usr/bin/perl -pe \"s<\\Q++LOCALEDIR++\\E></usr/share/locale>\"\n<Git/I18N.pm >blib/lib/Git/I18N.pm\n    SUBDIR templates\ninstall -d -m 755 '/usr/bin'\nCopying scripts to /usr/bin\ncp: omitting directory ‘bin-wrappers’\ncp: omitting directory ‘block-sha1’\ncp: omitting directory ‘builtin’\ncp: omitting directory ‘compat’\ncp: omitting directory ‘contrib’\ncp: omitting directory ‘Documentation’\ncp: omitting directory ‘ewah’\ncp: omitting directory ‘git-gui’\ncp: omitting directory ‘gitk-git’\n\n...\n\n2014-12-23 23:03 GMT+06:00 Junio C Hamano <gitster@pobox.com>:\n> Alexander Kuleshov <kuleshovmail@gmail.com> writes:\n>\n>> Trying to install git from source, executing:\n>>\n>> make configure\n>> ./configure --prefix=/usr\n>> make --prefix=/usr all\n>> sudo make install DISTDIR=/usr\n>\n> That does not seem to match any of the ways how INSTALL tells us to\n> build and install.\n>\n> Excerpts from INSTALL\n>\n>     (1) ... If you want to do a global install, you can do\n>\n>         $ make prefix=/usr all doc info ;# as yourself\n>         # make prefix=/usr install install-doc install-html install-info ;# as root\n>\n> Note how \"prefix\" is spelled.\n>\n>    (2) Alternatively you can use autoconf generated ./configure\n>        script to set up install paths (via config.mak.autogen), so\n>        you can write instead\n>\n>         $ make configure ;# as yourself\n>         $ ./configure --prefix=/usr ;# as yourself\n>         $ make all doc ;# as yourself\n>         # make install install-doc install-html;# as root\n>\n> Note how \"make\" does not have any \"prefix\".\n>\n> Also when you install to a temporary directory so that you can tar\n> up the resulting hierarchy, the variable to use is spelled DESTDIR,\n> e.g.\n>\n>         make DESTDIR=/var/tmp/git-2.2.1 install install-doc\n>\n>> ...\n>> What's problem can be here?\n>\n> Hopefully the above would be a good start to help you figure that\n> out.\n\n\n\n-- \n_________________________\n0xAX\n"},{"id":"254023","messageId":"xmqq1tnq45yk.fsf@gitster.dls.corp.google.com","threadId":"38231","inReplyTo":"CANCZXo4daZffQ7binFpHBy9adKKeuwHuR5VRixXUowMdgAdhTQ@mail.gmail.com","subject":"Re: Question about installing git from source","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-12-23T17:43:47Z","receivedAt":"2014-12-23T17:43:47Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Alexander Kuleshov <kuleshovmail@gmail.com> writes:\n\n> install -d -m 755 '/usr/bin'\n> Copying scripts to /usr/bin\n\nAs 'git grep \"Copying scripts\"' gives us nothing, the message is\nobviously not what we are giving.  Perhaps you have a strange \"install\"\nin your path that does not understand \"-d\" is a way to tell it to\nmake sure a directory exists (by creating one as necessary)?\n"},{"id":"254024","messageId":"CANCZXo4q-TwH8WyqP1GYcUY-obWG1HAt8gSEs7jy5TJiUDG0HA@mail.gmail.com","threadId":"38231","inReplyTo":"xmqq1tnq45yk.fsf@gitster.dls.corp.google.com","subject":"Re: Question about installing git from source","fromName":"Alexander Kuleshov","fromEmail":"kuleshovmail@gmail.com","sentAt":"2014-12-23T17:53:27Z","receivedAt":"2014-12-23T17:53:27Z","isPatch":false,"sender":{"key":"kuleshovmail@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2699235?v=4"},"body":"I looked at Makefile, and seems that it occurs from here:\nhttps://github.com/git/git/blob/master/Makefile#L2205\n\nIt tries to copy all files/folders from git root directory but\n'install' command prints this error. I tried to execute 'sudo install\n-d -m 755' in other directory and if there is directory too it prints\nthe same error. For example:\n\n~/scripts $ ls\naddPPA    cleanMailTrash  git-autor    git-ranges       git-tp\n            install     scripts    ssh-live       term-help  tp-git\n    updateMail  xray-start\nbuildGit  deployWork      git-install  git-remove-tags\ngit-update-commit-message  install.sh  ssh-build  ssh-wiwob-lab  test\n     updateGitDev  updateNews\n\ntest - is directory here\n\n~/scripts $ sudo install -d -m 755 .\nCopying scripts to /usr/bin\ncp: omitting directory ‘test’\nDone\n\n2014-12-23 23:43 GMT+06:00 Junio C Hamano <gitster@pobox.com>:\n> Alexander Kuleshov <kuleshovmail@gmail.com> writes:\n>\n>> install -d -m 755 '/usr/bin'\n>> Copying scripts to /usr/bin\n>\n> As 'git grep \"Copying scripts\"' gives us nothing, the message is\n> obviously not what we are giving.  Perhaps you have a strange \"install\"\n> in your path that does not understand \"-d\" is a way to tell it to\n> make sure a directory exists (by creating one as necessary)?\n>\n\n\n\n-- \n_________________________\n0xAX\n"},{"id":"254069","messageId":"CANCZXo730yBxQEeCir2KZ4KxOn8RiOPyQf7Wd_AmTSR71H+NYQ@mail.gmail.com","threadId":"38231","inReplyTo":"CANCZXo4q-TwH8WyqP1GYcUY-obWG1HAt8gSEs7jy5TJiUDG0HA@mail.gmail.com","subject":"Re: Question about installing git from source","fromName":"Alexander Kuleshov","fromEmail":"kuleshovmail@gmail.com","sentAt":"2014-12-24T07:52:09Z","receivedAt":"2014-12-24T07:52:09Z","isPatch":false,"sender":{"key":"kuleshovmail@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2699235?v=4"},"body":"Yeah, was wrong install script.\n\nthank you.\n\n2014-12-23 23:53 GMT+06:00 Alexander Kuleshov <kuleshovmail@gmail.com>:\n> I looked at Makefile, and seems that it occurs from here:\n> https://github.com/git/git/blob/master/Makefile#L2205\n>\n> It tries to copy all files/folders from git root directory but\n> 'install' command prints this error. I tried to execute 'sudo install\n> -d -m 755' in other directory and if there is directory too it prints\n> the same error. For example:\n>\n> ~/scripts $ ls\n> addPPA    cleanMailTrash  git-autor    git-ranges       git-tp\n>             install     scripts    ssh-live       term-help  tp-git\n>     updateMail  xray-start\n> buildGit  deployWork      git-install  git-remove-tags\n> git-update-commit-message  install.sh  ssh-build  ssh-wiwob-lab  test\n>      updateGitDev  updateNews\n>\n> test - is directory here\n>\n> ~/scripts $ sudo install -d -m 755 .\n> Copying scripts to /usr/bin\n> cp: omitting directory ‘test’\n> Done\n>\n> 2014-12-23 23:43 GMT+06:00 Junio C Hamano <gitster@pobox.com>:\n>> Alexander Kuleshov <kuleshovmail@gmail.com> writes:\n>>\n>>> install -d -m 755 '/usr/bin'\n>>> Copying scripts to /usr/bin\n>>\n>> As 'git grep \"Copying scripts\"' gives us nothing, the message is\n>> obviously not what we are giving.  Perhaps you have a strange \"install\"\n>> in your path that does not understand \"-d\" is a way to tell it to\n>> make sure a directory exists (by creating one as necessary)?\n>>\n>\n>\n>\n> --\n> _________________________\n> 0xAX\n\n\n\n-- \n_________________________\n0xAX\n"}]}