質問編集履歴
6
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -41,4 +41,42 @@
|
|
41
41
|
$ ls -l ~/.linuxbrew/lib/crti.o
|
42
42
|
lrwxrwxrwx 1 ユーザー名 members 31 5月 15 00:52 /home/ユーザー名/.linuxbrew/lib/crti.o -> ../Cellar/glibc/2.23/lib/crti.o
|
43
43
|
|
44
|
+
```
|
45
|
+
####追記
|
46
|
+
```
|
47
|
+
$ brew --config
|
48
|
+
Error: Please update your system curl.
|
49
|
+
Minimum required version: 7.41.0
|
50
|
+
Your curl version: 7.29.0
|
51
|
+
Your curl executable: /usr/bin/curl
|
52
|
+
Error: Please update your system Git.
|
53
|
+
Minimum required version: 2.7.0
|
54
|
+
Your Git version: 1.8.3.1
|
55
|
+
Your Git executable: /usr/bin/git
|
56
|
+
HOMEBREW_VERSION: >=2.5.0 (shallow or no git repository)
|
57
|
+
ORIGIN: https://github.com/Homebrew/brew
|
58
|
+
HEAD: 7c68b1738b3dce2885d0146f327eaaf96b6d0029
|
59
|
+
Last commit: 2 days ago
|
60
|
+
Core tap ORIGIN: https://github.com/Homebrew/linuxbrew-core
|
61
|
+
Core tap HEAD: e280d0a1a8e6baae7461513ec09fc855c53d531e
|
62
|
+
Core tap last commit: 28 hours ago
|
63
|
+
Core tap branch: master
|
64
|
+
HOMEBREW_PREFIX: /home/ユーザー名/.linuxbrew
|
65
|
+
HOMEBREW_REPOSITORY: /home/ユーザー名/.linuxbrew/Homebrew
|
66
|
+
HOMEBREW_CELLAR: /home/ユーザー名/.linuxbrew/Cellar
|
67
|
+
HOMEBREW_CASK_OPTS: []
|
68
|
+
HOMEBREW_MAKE_JOBS: 96
|
69
|
+
Homebrew Ruby: 2.6.3 => /home/ユーザー名/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
|
70
|
+
CPU: 96-core 64-bit zen
|
71
|
+
Clang: N/A
|
72
|
+
Git: 1.8.3.1 => /bin/git
|
73
|
+
Curl: 7.29.0 => /usr/bin/curl
|
74
|
+
Kernel: Linux 4.15.0-142-generic x86_64 GNU/Linux
|
75
|
+
OS: CentOS Linux release 7.8.2003 (Core)
|
76
|
+
Host glibc: 2.17
|
77
|
+
/usr/bin/gcc: 4.8.5
|
78
|
+
/usr/bin/ruby: 2.0.0
|
79
|
+
glibc: 2.23
|
80
|
+
gcc@5: 5.5.0_6
|
81
|
+
xorg: N/A
|
44
82
|
```
|
5
文章を追記・修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
homebrewで
|
1
|
+
homebrewでgccをインストールする際にエラーが発生する
|
body
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
|
-
Xサーバーにhomebrewでcurlをインストールするときにエラーが発生しました。
|
3
|
+
初心者です。Xサーバーにhomebrewでcurlをインストールするときにエラーが発生しました。
|
4
|
+
gccをインストールするところでldがcrti.oというリロケータブルオブジェクトを探す際に見つからないためにエラーが起きているようです。
|
5
|
+
LIBRARY_PATHは.linuxbrew/libになっていて、そこにはcrti.oのシンボリックリンクがあり、それは.linuxbrew/Cellar/glibc/2.23/lib/crti.oにきちんとリンクされています。
|
4
|
-
|
6
|
+
一体なぜこのようなエラーが起きているのかわかりません。どの部分を修正すべきでしょうか。ご教授いただけると幸いです。
|
5
7
|
|
6
8
|
|
7
9
|
### 発生している問題・エラーメッセージ
|
4
試したことの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -38,13 +38,5 @@
|
|
38
38
|
/usr/lib64/crti.o
|
39
39
|
$ ls -l ~/.linuxbrew/lib/crti.o
|
40
40
|
lrwxrwxrwx 1 ユーザー名 members 31 5月 15 00:52 /home/ユーザー名/.linuxbrew/lib/crti.o -> ../Cellar/glibc/2.23/lib/crti.o
|
41
|
-
$ which ld
|
42
|
-
~/.linuxbrew/bin/ld
|
43
|
-
$ ldd ~/.linuxbrew/bin/ld
|
44
|
-
linux-vdso.so.1 (0x00007ffd045b8000)
|
45
|
-
libz.so.1 => /home/ユーザー名/.linuxbrew/lib/libz.so.1 (0x00007f74de0e0000)
|
46
|
-
libdl.so.2 => /home/ユーザー名/.linuxbrew/lib/libdl.so.2 (0x00007f74de0db000)
|
47
|
-
libc.so.6 => /home/ユーザー名/.linuxbrew/lib/libc.so.6 (0x00007f74ddf3f000)
|
48
|
-
/home/ユーザー名/.linuxbrew/lib/ld.so (0x00007f74de2f7000)
|
49
41
|
|
50
42
|
```
|
3
文法の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -38,9 +38,9 @@
|
|
38
38
|
/usr/lib64/crti.o
|
39
39
|
$ ls -l ~/.linuxbrew/lib/crti.o
|
40
40
|
lrwxrwxrwx 1 ユーザー名 members 31 5月 15 00:52 /home/ユーザー名/.linuxbrew/lib/crti.o -> ../Cellar/glibc/2.23/lib/crti.o
|
41
|
-
|
41
|
+
$ which ld
|
42
42
|
~/.linuxbrew/bin/ld
|
43
|
-
|
43
|
+
$ ldd ~/.linuxbrew/bin/ld
|
44
44
|
linux-vdso.so.1 (0x00007ffd045b8000)
|
45
45
|
libz.so.1 => /home/ユーザー名/.linuxbrew/lib/libz.so.1 (0x00007f74de0e0000)
|
46
46
|
libdl.so.2 => /home/ユーザー名/.linuxbrew/lib/libdl.so.2 (0x00007f74de0db000)
|
2
試したことの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,5 +36,15 @@
|
|
36
36
|
./.linuxbrew/Cellar/gcc@5/5.5.0_6/lib/gcc/5/gcc/x86_64-unknown-linux-gnu/5.5.0/crti.o
|
37
37
|
$ locate crti.o
|
38
38
|
/usr/lib64/crti.o
|
39
|
+
$ ls -l ~/.linuxbrew/lib/crti.o
|
40
|
+
lrwxrwxrwx 1 ユーザー名 members 31 5月 15 00:52 /home/ユーザー名/.linuxbrew/lib/crti.o -> ../Cellar/glibc/2.23/lib/crti.o
|
41
|
+
[ユーザー名@sv10800 ~]$ which ld
|
42
|
+
~/.linuxbrew/bin/ld
|
43
|
+
[ユーザー名@sv10800 ~]$ ldd ~/.linuxbrew/bin/ld
|
44
|
+
linux-vdso.so.1 (0x00007ffd045b8000)
|
45
|
+
libz.so.1 => /home/ユーザー名/.linuxbrew/lib/libz.so.1 (0x00007f74de0e0000)
|
46
|
+
libdl.so.2 => /home/ユーザー名/.linuxbrew/lib/libdl.so.2 (0x00007f74de0db000)
|
47
|
+
libc.so.6 => /home/ユーザー名/.linuxbrew/lib/libc.so.6 (0x00007f74ddf3f000)
|
48
|
+
/home/ユーザー名/.linuxbrew/lib/ld.so (0x00007f74de2f7000)
|
39
49
|
|
40
50
|
```
|
1
試したことを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,4 +27,14 @@
|
|
27
27
|
make[1]: Leaving directory `/tmp/gcc-20210514-66762-xs0qo4/gcc-11.1.0/build'
|
28
28
|
make: *** [all] Error 2
|
29
29
|
|
30
|
+
```
|
31
|
+
###試したこと
|
32
|
+
```
|
33
|
+
$ find -name crti.o
|
34
|
+
./.linuxbrew/lib/crti.o
|
35
|
+
./.linuxbrew/Cellar/glibc/2.23/lib/crti.o
|
36
|
+
./.linuxbrew/Cellar/gcc@5/5.5.0_6/lib/gcc/5/gcc/x86_64-unknown-linux-gnu/5.5.0/crti.o
|
37
|
+
$ locate crti.o
|
38
|
+
/usr/lib64/crti.o
|
39
|
+
|
30
40
|
```
|