-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no native library for os.name=Linux and os.arch=ppc64le #450
Comments
fix xerial#450 for os.name=Linux and os.arch = "ppc64le"
I am too facing a similar issue on power with the below error. Any details when the above PR would be merged. Caused by: java.lang.Exception: No native library is found for os.name=Linux and os.arch=ppc64le. path=/org/sqlite/native/Linux/ppc64le |
hi, rashmi-ibm :
I just make a directory "ppc64le " and copy the libsqlitejdbc.so under the directory "ppc64" to "ppc64le".
It works.
you could try and test your app to see if all functions are correct.
----- Original message -----From: rashmi-ibm <notifications@github.com>To: xerial/sqlite-jdbc <sqlite-jdbc@noreply.github.com>Cc: shenhuicc <shenhnj@cn.ibm.com>, Author <author@noreply.github.com>Subject: [EXTERNAL] Re: [xerial/sqlite-jdbc] no native library for os.name=Linux and os.arch=ppc64le (#450)Date: Thu, Sep 12, 2019 2:34 PM
I am too facing a similar issue on power with the below error. Any details when the above PR would be merged.
Caused by: java.lang.Exception: No native library is found for os.name=Linux and os.arch=ppc64le. path=/org/sqlite/native/Linux/ppc64leat org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:333) ~[sqlite-jdbc-3.28.0.jar:?]at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:64) ~[sqlite-jdbc-3.28.0.jar:?]at org.sqlite.core.NativeDB.load(NativeDB.java:63) ~[sqlite-jdbc-3.28.0.jar:?]at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:235) ~[sqlite-jdbc-3.28.0.jar:?]
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
if you want to build it on ppc64le , reference to this link:
Add linux ppc64 binary https://g2.gitblit.com/xerial/sqlite-jdbc/commit/48479d1f7afd608c5701cd705acd794cd7949e40
----- Original message -----From: rashmi-ibm <notifications@github.com>To: xerial/sqlite-jdbc <sqlite-jdbc@noreply.github.com>Cc: shenhuicc <shenhnj@cn.ibm.com>, Author <author@noreply.github.com>Subject: [EXTERNAL] Re: [xerial/sqlite-jdbc] no native library for os.name=Linux and os.arch=ppc64le (#450)Date: Thu, Sep 12, 2019 2:34 PM
I am too facing a similar issue on power with the below error. Any details when the above PR would be merged.
Caused by: java.lang.Exception: No native library is found for os.name=Linux and os.arch=ppc64le. path=/org/sqlite/native/Linux/ppc64leat org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:333) ~[sqlite-jdbc-3.28.0.jar:?]at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:64) ~[sqlite-jdbc-3.28.0.jar:?]at org.sqlite.core.NativeDB.load(NativeDB.java:63) ~[sqlite-jdbc-3.28.0.jar:?]at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:235) ~[sqlite-jdbc-3.28.0.jar:?]
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
I am building a project which has a gradle dependency added for sqllite-jdbc as shown below. I would need the published/fixed jar for my issue resolution. implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.15.1' |
try:
1. download sqlite-jdbc 3.15.1 source code
https://github.com/xerial/sqlite-jdbc
2. modify the Makefile and Makefile.common according to the link
https://g2.gitblit.com/xerial/sqlite-jdbc/commit/48479d1f7afd608c5701cd705acd794cd7949e40
remember to change all "ppc64" to "ppc64le"
3. compile with maven "mvn compile"
4. it should generate libsqlitejdbc.so if all goes well
----- Original message -----From: rashmi-ibm <notifications@github.com>To: xerial/sqlite-jdbc <sqlite-jdbc@noreply.github.com>Cc: shenhuicc <shenhnj@cn.ibm.com>, Author <author@noreply.github.com>Subject: [EXTERNAL] Re: [xerial/sqlite-jdbc] no native library for os.name=Linux and os.arch=ppc64le (#450)Date: Thu, Sep 12, 2019 3:10 PM
I am building a project which has a gradle dependency added for sqllite-jdbc as shown below. I would need the published/fixed jar for my issue resolution.
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.15.1'
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
I used the latest code from git repo link: I then did a mvn compile successfully. Logs:- root@8b6dc8c97ea6:/sqlite-jdbc/src/main/resources/org/sqlite/native/Linux/ppc64# ls |
but you need "ppc64le" right ?
----- Original message -----From: rashmi-ibm <notifications@github.com>To: xerial/sqlite-jdbc <sqlite-jdbc@noreply.github.com>Cc: shenhuicc <shenhnj@cn.ibm.com>, Author <author@noreply.github.com>Subject: [EXTERNAL] Re: [xerial/sqlite-jdbc] no native library for os.name=Linux and os.arch=ppc64le (#450)Date: Thu, Sep 12, 2019 4:36 PM
I used the latest code from git repo link:https://github.com/xerial/sqlite-jdbcThe above code had all the ppc64 specific changes.
I then did a mvn compile successfully.
Logs:-root@8b6dc8c97ea6:/sqlite-jdbc# mvn compile[INFO] Scanning for projects...[INFO][INFO] ------------------------------------------------------------------------[INFO] Building SQLite JDBC 3.28.1-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO][INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ sqlite-jdbc ---[INFO][INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sqlite-jdbc ---[INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] Copying 12 resources[INFO] Copying 1 resource to META-INF/services[INFO] Copying 1 resource[INFO] Copying 3 resources to META-INF/maven/org.xerial/sqlite-jdbc[INFO][INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sqlite-jdbc ---[INFO] Changes detected - recompiling the module![INFO] Compiling 46 source files to /sqlite-jdbc/target/classes[WARNING] /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3ResultSet.java: Some input files use or override a deprecated API.[WARNING] /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3ResultSet.java: Recompile with -Xlint:deprecation for details.[WARNING] /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3Connection.java: /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3Connection.java uses unchecked or unsafe operations.[WARNING] /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3Connection.java: Recompile with -Xlint:unchecked for details.[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 6.635 s[INFO] Finished at: 2019-09-12T08:21:19+00:00[INFO] Final Memory: 15M/36M[INFO] ------------------------------------------------------------------------root@8b6dc8c97ea6:/sqlite-jdbc#
root@8b6dc8c97ea6:/sqlite-jdbc/src/main/resources/org/sqlite/native/Linux/ppc64# lslibsqlitejdbc.soroot@8b6dc8c97ea6:/sqlite-jdbc/src/main/resources/org/sqlite/native/Linux/ppc64#
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
yeah i need ppc64le i will update the above mentioned files to refer ppc64le instead of ppc64 |
@shenhuicc how can i generate the libsqlitejdbc.so file on a ppc64le. when i run mvn compile it builds successfully but doesnt generate the .so |
when start the app on a IBM power9 server with centos 7.6, an error occurs like:
no native library is found for os.name=Linux and os.arch=ppc64le
please see the attached picture
I see the newest jar ball has already include os.name=Linux and os.arch=ppc64 under the path "sqlite-jdbc/org/sqlite/native/Linux", but miss a "ppc64le" directory.
maybe just make a directory called "ppc64le", then copy the lib file from "ppc64" directory to "ppc64le" directory. will this works ?
The text was updated successfully, but these errors were encountered: