Also, if you are compiling and running locally while trying to develop
customized solr (or contributions) the script at dev-tools/scripts/cloud.sh
may be useful. It is however designed to work with a locally running
zookeeper for enhanced realism. The beginning of that script contains a
long comment for documentation.

On Sat, Dec 24, 2022 at 3:36 PM Dave <hastings.recurs...@gmail.com> wrote:

> That’s awesome. Also Perl should be on every Unix system. Personally I
> used homebrew and it was super fast and easy to get it up and going
>
> > On Dec 24, 2022, at 3:28 PM, Somnath Kumar <somnathkumar2...@gmail.com>
> wrote:
> >
> > Thank you Shawn. Just tried this and it worked!
> >
> > Som
> >
> >> On Mon, Dec 19, 2022 at 9:28 PM Shawn Heisey <apa...@elyograg.org>
> wrote:
> >>
> >>> On 12/19/22 15:20, Somnath Kumar wrote:
> >>> Hello, I am a newbie to Solr and am trying to compile and run  locally
> on
> >>> mac. Pointer to any documentation for newcomers to do this will be
> >> greatly
> >>> appreciated.
> >>
> >> You will need a JDK and perl.
> >>
> >> For Solr 8.x, you need JDK8 at a minimum, and 11 is probably better.  I
> >> don't think I would go any higher than JDK 11 for 8.x.  Jumping too many
> >> major releases can cause problems.
> >>
> >> For 9.x, you need JDK 11 at a minimum, and 17 is probably better.
> >>
> >> My stepdaughter's mac has perl installed and I don't think she has ever
> >> installed it herself.  I doubt she has any idea how to use perl.
> >>
> >> There's probably some easy way to install a JDK on a mac.  I have one
> >> from work around here somewhere but I can't find it right now so I don't
> >> have explicit steps.
> >>
> >> Perl and the JDK will be enough to run either of these commands (which
> >> are appropriate for Solr 9.x, not 8.x):
> >>
> >> ./gradlew clean dev
> >> ./gradlew clean distTar
> >>
> >> The dev target gets you a directory with a runnable solr in:
> >> solr/packaging/build/dev/
> >>
> >> The distTar target gets you a file named something like:
> >> solr/packaging/build/distributions/solr-9.2.0-SNAPSHOT.tgz
> >> which works exactly like the binary Solr download.
> >>
> >> If you want to do one of the more comprehensive build targets that
> >> involve building the documentation (and maybe the targets involving
> >> tests), you will also need python3, which is also installed on my
> >> stepdaughter's mac and I don't think it would be something she would
> >> have downloaded.
> >>
> >> Thanks,
> >> Shawn
> >>
>


-- 
http://www.needhamsoftware.com (work)
http://www.the111shift.com (play)

Reply via email to