質問編集履歴

5

修正

2019/11/22 23:32

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,9 @@
18
18
 
19
19
  こちらのエラー内容から、まず```ld: library not found for -lssl```ここの部分が気になり、「lssl」ライブラリのインストールが必要とわかった為、以下のコマンドを実行いたしました。
20
20
 
21
- ```brew install openssl```次に```export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/```こちらのコマンドを実行しました。
21
+ ```brew install openssl```次に```export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl
22
+
23
+ @1.1/lib/```こちらのコマンドを実行しました。
22
24
 
23
25
  しかし、再度```pip install django-heroku```を実行すると同様のエラーが発生してしまいます。
24
26
 

4

タグ追加

2019/11/22 23:32

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
File without changes

3

タイトル修正

2019/11/22 23:21

投稿

aae_11
aae_11

スコア178

test CHANGED
@@ -1 +1 @@
1
- 「pip install django-heroku」を実行した際のエラーについて
1
+ HerokuでのDjango環境構築の際のエラーについて
test CHANGED
File without changes

2

本文及びタイトル修正

2019/11/22 23:19

投稿

aae_11
aae_11

スコア178

test CHANGED
@@ -1 +1 @@
1
- HerokuDjango環境構築について
1
+ 「pip install django-heroku」を実行した際エラーについて
test CHANGED
@@ -2,69 +2,7 @@
2
2
 
3
3
  具体的には、「pip install django-heroku」を実行しますと、以下のエラーが表示されます。
4
4
 
5
- > ERROR: Command errored out with exit status 1:
6
-
7
- command: /Users/.pyenv/versions/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-record-3krlvg1x/install-record.txt --single-version-externally-managed --compile
8
-
9
- cwd: /private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/
10
-
11
- Complete output (144 lines):
12
-
13
- running install
14
-
15
- running build
16
-
17
- running build_py
18
-
19
- creating build
20
-
21
- creating build/lib.macosx-10.14-x86_64-3.7
22
-
23
- creating build/lib.macosx-10.14-x86_64-3.7/psycopg2
24
-
25
- copying lib/_json.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
26
-
27
- copying lib/extras.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
28
-
29
- copying lib/compat.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
30
-
31
- copying lib/errorcodes.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
32
-
33
- copying lib/tz.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
34
-
35
- copying lib/_range.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
36
-
37
- copying lib/_ipaddress.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
38
-
39
- copying lib/_lru_cache.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
40
-
41
- copying lib/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
42
-
43
- copying lib/extensions.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
44
-
45
- copying lib/errors.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
46
-
47
- copying lib/sql.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
48
-
49
- copying lib/pool.py -> build/lib.macosx-10.14-x86_64-3.7/psycopg2
50
-
51
- running build_ext
52
-
53
- building 'psycopg2._psycopg' extension
54
-
55
- creating build/temp.macosx-10.14-x86_64-3.7
56
-
57
- creating build/temp.macosx-10.14-x86_64-3.7/psycopg
58
-
59
- 1 warning generated.
60
-
61
- clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -DPSYCOPG_VERSION=2.8.4 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=110005 -DHAVE_LO64=1 -I/Users/shinya/.pyenv/versions/3.7.5/include/python3.7m -I. -I/usr/local/Cellar/postgresql/11.5_1/include -I/usr/local/Cellar/postgresql/11.5_1/include/server -c psycopg/lobject_int.c -o build/temp.macosx-10.14-x86_64-3.7/psycopg/lobject_int.o
62
-
63
- clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -DPSYCOPG_VERSION=2.8.4 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=110005 -DHAVE_LO64=1 -I/Users/shinya/.pyenv/versions/3.7.5/include/python3.7m -I. -I/usr/local/Cellar/postgresql/11.5_1/include -I/usr/local/Cellar/postgresql/11.5_1/include/server -c psycopg/lobject_type.c -o build/temp.macosx-10.14-x86_64-3.7/psycopg/lobject_type.o
64
-
65
- clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include -DPSYCOPG_VERSION=2.8.4 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=110005 -DHAVE_LO64=1 -I/Users/shinya/.pyenv/versions/3.7.5/include/python3.7m -I. -I/usr/local/Cellar/postgresql/11.5_1/include -I/usr/local/Cellar/postgresql/11.5_1/include/server -c psycopg/typecast.c -o build/temp.macosx-10.14-x86_64-3.7/psycopg/typecast.o
66
-
67
- clang -bundle -undefined dynamic_lookup -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/shinya/.pyenv/versions/3.7.5/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/shinya/.pyenv/versions/3.7.5/lib build/temp.macosx-10.14-x86_64-3.7/psycopg/psycopgmodule.o build/temp.macosx-10.14-x86_64-3.7/psycopg/green.o build/temp.macosx-10.14-x86_64-3.7/psycopg/pqpath.o build/temp.macosx-10.14-x86_64-3.7/psycopg/utils.o build/temp.macosx-10.14-x86_64-3.7/psycopg/bytes_format.o build/temp.macosx-10.14-x86_64-3.7/psycopg/libpq_support.o build/temp.macosx-10.14-x86_64-3.7/psycopg/win32_support.o build/temp.macosx-10.14-x86_64-3.7/psycopg/solaris_support.o build/temp.macosx-10.14-x86_64-3.7/psycopg/connection_int.o build/temp.macosx-10.14-x86_64-3.7/psycopg/connection_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/cursor_int.o build/temp.macosx-10.14-x86_64-3.7/psycopg/cursor_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/column_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/replication_connection_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/replication_cursor_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/replication_message_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/diagnostics_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/error_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/conninfo_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/lobject_int.o build/temp.macosx-10.14-x86_64-3.7/psycopg/lobject_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/notify_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/xid_type.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_asis.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_binary.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_datetime.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_list.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_pboolean.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_pdecimal.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_pint.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_pfloat.o build/temp.macosx-10.14-x86_64-3.7/psycopg/adapter_qstring.o build/temp.macosx-10.14-x86_64-3.7/psycopg/microprotocols.o build/temp.macosx-10.14-x86_64-3.7/psycopg/microprotocols_proto.o build/temp.macosx-10.14-x86_64-3.7/psycopg/typecast.o -L/usr/local/lib -lpq -lssl -lcrypto -o build/lib.macosx-10.14-x86_64-3.7/psycopg2/_psycopg.cpython-37m-darwin.so
5
+ > copg.cpython-37m-darwin.so
68
6
 
69
7
  ld: library not found for -lssl
70
8
 
@@ -72,12 +10,22 @@
72
10
 
73
11
  error: command 'clang' failed with exit status 1
74
12
 
75
- ----------------------------------------
76
-
77
- ERROR: Command errored out with exit status 1: /Users/.pyenv/versions/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-record-3krlvg1x/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
13
+ ERROR: Command errored out with exit status 1: /Users/shinya/.pyenv/versions/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-3knh5dp7/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-3knh5dp7/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();execcompile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-record-9c4k191_/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
78
14
 
79
15
 
80
16
 
17
+
18
+
19
+ こちらのエラー内容から、まず```ld: library not found for -lssl```ここの部分が気になり、「lssl」ライブラリのインストールが必要とわかった為、以下のコマンドを実行いたしました。
20
+
21
+ ```brew install openssl```次に```export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/```こちらのコマンドを実行しました。
22
+
23
+ しかし、再度```pip install django-heroku```を実行すると同様のエラーが発生してしまいます。
24
+
25
+
26
+
81
- エラー内容で調べてみたのですが、解決できなかった為、解決法につきまして、ご助言頂けましたら幸いです。
27
+ こちらのエラーにつきまして、原因が分からない為、どなたかご助言頂けましたら幸いです。
28
+
29
+
82
30
 
83
31
  ※文字数制限の為、途中のエラー内容は割愛してあります。

1

誤字修正

2019/11/22 23:15

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
@@ -74,7 +74,7 @@
74
74
 
75
75
  ----------------------------------------
76
76
 
77
- ERROR: Command errored out with exit status 1: /Users/shinya/.pyenv/versions/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-record-3krlvg1x/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
77
+ ERROR: Command errored out with exit status 1: /Users/.pyenv/versions/3.7.5/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-install-pjmv4mwb/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/b6/2drgg60j42z3zypzjk9gwsbm0000gn/T/pip-record-3krlvg1x/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
78
78
 
79
79
 
80
80