Unable to compile python3.7 on centos 5 with sqlite3
When am trying to compile python3.7.1 on centos 5 got the error,
Failed to build these modules:
_sqlite3
On further checking on the compile log and found the below lines,
building '_sqlite3' extension
creating build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite
/usr/bin/gcc44 -pthread -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -DMODULE_NAME="sqlite3" -IModules/_sqlite -I/usr/include -I./Include -I. -I/usr/local/include -I/usr/local/src/Python-3.7.1/Include -I/usr/local/src/Python-3.7.1 -c /usr/local/src/Python-3.7.1/Modules/_sqlite/cache.c -o build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite/cache.o
/usr/bin/gcc44 -pthread -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -DMODULE_NAME="sqlite3" -IModules/_sqlite -I/usr/include -I./Include -I. -I/usr/local/include -I/usr/local/src/Python-3.7.1/Include -I/usr/local/src/Python-3.7.1 -c /usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c -o build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.o
/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c: In function ‘_pysqlite_connection_begin’:
/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c:387: error: implicit declaration of function ‘sqlite3_prepare_v2’
Am using /usr/bin/gcc44
along with sqlite-devel
package is installed. I would like to know if any other faced such issue while compiling python from source and if any solution available for this compile issue.
python-3.x sqlite centos python-3.7 centos5
add a comment |
When am trying to compile python3.7.1 on centos 5 got the error,
Failed to build these modules:
_sqlite3
On further checking on the compile log and found the below lines,
building '_sqlite3' extension
creating build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite
/usr/bin/gcc44 -pthread -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -DMODULE_NAME="sqlite3" -IModules/_sqlite -I/usr/include -I./Include -I. -I/usr/local/include -I/usr/local/src/Python-3.7.1/Include -I/usr/local/src/Python-3.7.1 -c /usr/local/src/Python-3.7.1/Modules/_sqlite/cache.c -o build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite/cache.o
/usr/bin/gcc44 -pthread -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -DMODULE_NAME="sqlite3" -IModules/_sqlite -I/usr/include -I./Include -I. -I/usr/local/include -I/usr/local/src/Python-3.7.1/Include -I/usr/local/src/Python-3.7.1 -c /usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c -o build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.o
/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c: In function ‘_pysqlite_connection_begin’:
/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c:387: error: implicit declaration of function ‘sqlite3_prepare_v2’
Am using /usr/bin/gcc44
along with sqlite-devel
package is installed. I would like to know if any other faced such issue while compiling python from source and if any solution available for this compile issue.
python-3.x sqlite centos python-3.7 centos5
Does python include it's own copy of sqlite, or does it use a system provided library? If the latter, what version of sqlite is installed?
– Shawn
Nov 22 '18 at 19:17
Here are the sqlite rpm's installed on my machine|sqlite|3.3.6|7|x86_64| |python-sqlite|1.1.7|1.2.1|x86_64| |sqlite-devel|3.3.6|7|x86_64| |sqlite|3.3.6|7|i386|
– Karthi1234
Nov 23 '18 at 0:25
1
Wow. That version of sqlite is... really old. It predates thesqlite3_prepare_v2()
function. If python is trying to build against that, no wonder it's failing.
– Shawn
Nov 23 '18 at 3:35
@Shawn Yes you are right. Just now compiled the latest version of sqlite and python is compiled now. Thanks
– Karthi1234
Nov 23 '18 at 4:32
add a comment |
When am trying to compile python3.7.1 on centos 5 got the error,
Failed to build these modules:
_sqlite3
On further checking on the compile log and found the below lines,
building '_sqlite3' extension
creating build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite
/usr/bin/gcc44 -pthread -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -DMODULE_NAME="sqlite3" -IModules/_sqlite -I/usr/include -I./Include -I. -I/usr/local/include -I/usr/local/src/Python-3.7.1/Include -I/usr/local/src/Python-3.7.1 -c /usr/local/src/Python-3.7.1/Modules/_sqlite/cache.c -o build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite/cache.o
/usr/bin/gcc44 -pthread -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -DMODULE_NAME="sqlite3" -IModules/_sqlite -I/usr/include -I./Include -I. -I/usr/local/include -I/usr/local/src/Python-3.7.1/Include -I/usr/local/src/Python-3.7.1 -c /usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c -o build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.o
/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c: In function ‘_pysqlite_connection_begin’:
/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c:387: error: implicit declaration of function ‘sqlite3_prepare_v2’
Am using /usr/bin/gcc44
along with sqlite-devel
package is installed. I would like to know if any other faced such issue while compiling python from source and if any solution available for this compile issue.
python-3.x sqlite centos python-3.7 centos5
When am trying to compile python3.7.1 on centos 5 got the error,
Failed to build these modules:
_sqlite3
On further checking on the compile log and found the below lines,
building '_sqlite3' extension
creating build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite
/usr/bin/gcc44 -pthread -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -DMODULE_NAME="sqlite3" -IModules/_sqlite -I/usr/include -I./Include -I. -I/usr/local/include -I/usr/local/src/Python-3.7.1/Include -I/usr/local/src/Python-3.7.1 -c /usr/local/src/Python-3.7.1/Modules/_sqlite/cache.c -o build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite/cache.o
/usr/bin/gcc44 -pthread -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -DMODULE_NAME="sqlite3" -IModules/_sqlite -I/usr/include -I./Include -I. -I/usr/local/include -I/usr/local/src/Python-3.7.1/Include -I/usr/local/src/Python-3.7.1 -c /usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c -o build/temp.linux-x86_64-3.7/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.o
/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c: In function ‘_pysqlite_connection_begin’:
/usr/local/src/Python-3.7.1/Modules/_sqlite/connection.c:387: error: implicit declaration of function ‘sqlite3_prepare_v2’
Am using /usr/bin/gcc44
along with sqlite-devel
package is installed. I would like to know if any other faced such issue while compiling python from source and if any solution available for this compile issue.
python-3.x sqlite centos python-3.7 centos5
python-3.x sqlite centos python-3.7 centos5
edited Nov 22 '18 at 17:41
TrebuchetMS
2,4201722
2,4201722
asked Nov 22 '18 at 17:22
Karthi1234Karthi1234
367213
367213
Does python include it's own copy of sqlite, or does it use a system provided library? If the latter, what version of sqlite is installed?
– Shawn
Nov 22 '18 at 19:17
Here are the sqlite rpm's installed on my machine|sqlite|3.3.6|7|x86_64| |python-sqlite|1.1.7|1.2.1|x86_64| |sqlite-devel|3.3.6|7|x86_64| |sqlite|3.3.6|7|i386|
– Karthi1234
Nov 23 '18 at 0:25
1
Wow. That version of sqlite is... really old. It predates thesqlite3_prepare_v2()
function. If python is trying to build against that, no wonder it's failing.
– Shawn
Nov 23 '18 at 3:35
@Shawn Yes you are right. Just now compiled the latest version of sqlite and python is compiled now. Thanks
– Karthi1234
Nov 23 '18 at 4:32
add a comment |
Does python include it's own copy of sqlite, or does it use a system provided library? If the latter, what version of sqlite is installed?
– Shawn
Nov 22 '18 at 19:17
Here are the sqlite rpm's installed on my machine|sqlite|3.3.6|7|x86_64| |python-sqlite|1.1.7|1.2.1|x86_64| |sqlite-devel|3.3.6|7|x86_64| |sqlite|3.3.6|7|i386|
– Karthi1234
Nov 23 '18 at 0:25
1
Wow. That version of sqlite is... really old. It predates thesqlite3_prepare_v2()
function. If python is trying to build against that, no wonder it's failing.
– Shawn
Nov 23 '18 at 3:35
@Shawn Yes you are right. Just now compiled the latest version of sqlite and python is compiled now. Thanks
– Karthi1234
Nov 23 '18 at 4:32
Does python include it's own copy of sqlite, or does it use a system provided library? If the latter, what version of sqlite is installed?
– Shawn
Nov 22 '18 at 19:17
Does python include it's own copy of sqlite, or does it use a system provided library? If the latter, what version of sqlite is installed?
– Shawn
Nov 22 '18 at 19:17
Here are the sqlite rpm's installed on my machine
|sqlite|3.3.6|7|x86_64| |python-sqlite|1.1.7|1.2.1|x86_64| |sqlite-devel|3.3.6|7|x86_64| |sqlite|3.3.6|7|i386|
– Karthi1234
Nov 23 '18 at 0:25
Here are the sqlite rpm's installed on my machine
|sqlite|3.3.6|7|x86_64| |python-sqlite|1.1.7|1.2.1|x86_64| |sqlite-devel|3.3.6|7|x86_64| |sqlite|3.3.6|7|i386|
– Karthi1234
Nov 23 '18 at 0:25
1
1
Wow. That version of sqlite is... really old. It predates the
sqlite3_prepare_v2()
function. If python is trying to build against that, no wonder it's failing.– Shawn
Nov 23 '18 at 3:35
Wow. That version of sqlite is... really old. It predates the
sqlite3_prepare_v2()
function. If python is trying to build against that, no wonder it's failing.– Shawn
Nov 23 '18 at 3:35
@Shawn Yes you are right. Just now compiled the latest version of sqlite and python is compiled now. Thanks
– Karthi1234
Nov 23 '18 at 4:32
@Shawn Yes you are right. Just now compiled the latest version of sqlite and python is compiled now. Thanks
– Karthi1234
Nov 23 '18 at 4:32
add a comment |
1 Answer
1
active
oldest
votes
The issue was sqlite version was very old. I had to compile the latest sqlite3 and then compile the python3.7 which went fine.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53435790%2funable-to-compile-python3-7-on-centos-5-with-sqlite3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The issue was sqlite version was very old. I had to compile the latest sqlite3 and then compile the python3.7 which went fine.
add a comment |
The issue was sqlite version was very old. I had to compile the latest sqlite3 and then compile the python3.7 which went fine.
add a comment |
The issue was sqlite version was very old. I had to compile the latest sqlite3 and then compile the python3.7 which went fine.
The issue was sqlite version was very old. I had to compile the latest sqlite3 and then compile the python3.7 which went fine.
answered Nov 23 '18 at 4:33
Karthi1234Karthi1234
367213
367213
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53435790%2funable-to-compile-python3-7-on-centos-5-with-sqlite3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Does python include it's own copy of sqlite, or does it use a system provided library? If the latter, what version of sqlite is installed?
– Shawn
Nov 22 '18 at 19:17
Here are the sqlite rpm's installed on my machine
|sqlite|3.3.6|7|x86_64| |python-sqlite|1.1.7|1.2.1|x86_64| |sqlite-devel|3.3.6|7|x86_64| |sqlite|3.3.6|7|i386|
– Karthi1234
Nov 23 '18 at 0:25
1
Wow. That version of sqlite is... really old. It predates the
sqlite3_prepare_v2()
function. If python is trying to build against that, no wonder it's failing.– Shawn
Nov 23 '18 at 3:35
@Shawn Yes you are right. Just now compiled the latest version of sqlite and python is compiled now. Thanks
– Karthi1234
Nov 23 '18 at 4:32