Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

make -C solr start fails on OSX with cp error #33

Open
kliron opened this issue Nov 30, 2015 · 2 comments
Open

make -C solr start fails on OSX with cp error #33

kliron opened this issue Nov 30, 2015 · 2 comments

Comments

@kliron
Copy link

kliron commented Nov 30, 2015

Running OSX 10.11.1 (El Capitan). Trying to install transmart-data v1.2.1-SNAPSHOT the installation runs smoothly until I try to start solr with:

make -C solr start

It barfs with the following error:

test -d contrib || /Applications/Xcode.app/Contents/Developer/usr/bin/make contrib
cp --reflink=auto "../lib/postgresql-9.2-1003.jdbc4.jar" "contrib/dataimporthandler/lib/postgresql-9.2-1003.jdbc4.jar"
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
make: *** [contrib/dataimporthandler/lib/postgresql-9.2-1003.jdbc4.jar] Error 64

The BSD version of cp does not understand long options (like --reflink=auto). To bypass the error we need to use the GNU cp command (gcp is installed as part of coreutils with brew install coreutils for those using Homebrew). Edit vars file and add the lines:

CP_COMMAND=gcp
EXPORT CP_COMMAND

Then edit solr/Makefile replacing line 33 with:

$(CP_COMMAND) --reflink=auto "$<" "$@"

and line 65 with:

$(CP_COMMAND) schemas/schema_$*.xml $@
@yuruoxin
Copy link

make -C solr start

[searcherExecutor-4-thread-1] INFO org.apache.solr.core.SolrCore – [rwg] Registered new searcher Searcher@d14a362 main{StandardDirectoryReader(segments_1:1:nrt)}

@yuruoxin
Copy link

make -C sold start stops, How to solve this problem?

Jarvanerp pushed a commit that referenced this issue Nov 22, 2016
Changed naming of access flag
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants