Giter Club home page Giter Club logo

Comments (8)

atoomic avatar atoomic commented on July 2, 2024

interesting... I can clearly reproduce the issue in production... working as expected on my sandbox
wonder if it s not coming from the git version, going to try to use the system one

from metacpan-grep-front-end.

Grinnz avatar Grinnz commented on July 2, 2024

Also for the sake of clarity, it would be a good idea to label the search as PCRE regex, as git does not use Perl regex.

from metacpan-grep-front-end.

toddr avatar toddr commented on July 2, 2024

Also for the sake of clarity, it would be a good idea to label the search as PCRE regex, as git does not use Perl regex.

@Grinnz the interesting thing about that is that the git grep command line option is actually: "--perl-regexp"

from metacpan-grep-front-end.

Grinnz avatar Grinnz commented on July 2, 2024

Yes, but it is mislabeled. The man page specifies that it is linking to libpcre.

from metacpan-grep-front-end.

atoomic avatar atoomic commented on July 2, 2024
/usr/bin/git grep -l -P 'sub\s' -- distros/
fatal: cannot use Perl-compatible regexes when not compiled with USE_LIBPCRE

from metacpan-grep-front-end.

atoomic avatar atoomic commented on July 2, 2024

git was not compiled with lib-pcre on the server, need to recompile it with pure among other dependencies, looks ok now in production

from metacpan-grep-front-end.

toddr avatar toddr commented on July 2, 2024

git build process for 2.13.3:

USE_LIBPCRE=YesPlease NO_TCLTK=1 ./configure --prefix=/home/toddr/git --with-libpcre && make -j18 install

from metacpan-grep-front-end.

atoomic avatar atoomic commented on July 2, 2024

For informations, after recompiling a few requires libraries, here is the command I run to recompile git in my user directory with pure support

CPPFLAGS=-I/home/atoomic/include LDFLAGS=-L/home/atoomic/lib ./configure --prefix=/home/atoomic/ --with-libpcre --without-tcltk

List of required dependencies:

  • m4 ( required for autoconf )
  • autoconf ( yes really )
  • pcre (used 8.41)
  • gettext (used 0.19.8.1)

and then git itself (version 2.13.3)

from metacpan-grep-front-end.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.