Saturday, March 17, 2018

FW: Problem encountered upon starting Solr after improper exit

-----Original Message-----
From: YIFAN LI [mailto:yifanli123@berkeley.edu]
Sent: 15 March 2018 10:17
To: solr-user@lucene.apache.org
Subject: Problem encountered upon starting Solr after improper exit

To whom it may concern,

I am running Solr 7.1.0 and encountered a problem starting Solr after I
killed the Java process running Solr without proper cleanup. The error
message that I received is as following:

solr-7.1.0 liyifan$ bin/solr run


dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib

Referenced from: /usr/local/bin/awk

Reason: image not found

Your current version of Java is too old to run this version of Solr

We found version , using command 'java -version', with response:

java version "1.8.0_45"

Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


Please install latest version of Java 1.8 or set JAVA_HOME properly.


Debug information:

JAVA_HOME: N/A

Active Path:

/Users/liyifan/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3
.5/bin:/opt/local/bin:/opt/local/sbin:/usr/Documents/2016\
Spring/appcivist-mobilization/activator-dist-1.3.9/bin:/usr/local/bin:/usr/b
in:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/local/git/bin

After I reset the JAVA_HOME variable, it still gives me the error:

bin/solr start

dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.4.dylib

Referenced from: /usr/local/bin/awk

Reason: image not found

Your current version of Java is too old to run this version of Solr

We found version , using command
'/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java
-version', with response:

java version "1.8.0_45"

Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


Please install latest version of Java 1.8 or set JAVA_HOME properly.


Debug information:

JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

Active Path:

/Users/liyifan/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3
.5/bin:/opt/local/bin:/opt/local/sbin:/usr/Documents/2016\
Spring/appcivist-mobilization/activator-dist-1.3.9/bin:/usr/local/bin:/usr/b
in:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/local/git/bin:
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin

and the director /usr/local/opt/mpfr/lib/ only contains the following files:

ls /usr/local/opt/mpfr/lib/

libmpfr.6.dylib libmpfr.a libmpfr.dylib pkgconfig

Do you think this problem is caused by killing the Java process without
proper cleanup? Could you suggest some solution to this problem? Thank you
very much!

Best,
Yifan

No comments:

Post a Comment