質問編集履歴
6
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,10 +16,12 @@
|
|
16
16
|
と、バージョンアップもできていません。
|
17
17
|
|
18
18
|
$ rails -v
|
19
|
-
|
19
|
+
Rails is not currently installed on this system. To get the latest version, simply type:
|
20
20
|
|
21
|
+
$ sudo gem install rails
|
22
|
+
|
21
|
-
|
23
|
+
You can then rerun your "rails" command.
|
22
|
-
|
24
|
+
|
23
25
|
```
|
24
26
|
試したコマンドの1部
|
25
27
|
```lang
|
5
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,8 +14,13 @@
|
|
14
14
|
$ ruby -v
|
15
15
|
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
|
16
16
|
と、バージョンアップもできていません。
|
17
|
+
|
18
|
+
$ rails -v
|
19
|
+
rbenv: rails: command not found
|
20
|
+
|
21
|
+
The `rails' command exists in these Ruby versions:
|
22
|
+
2.3.1
|
17
23
|
```
|
18
|
-
|
19
24
|
試したコマンドの1部
|
20
25
|
```lang
|
21
26
|
My:.bundle fig$ bundle config
|
4
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,6 +7,15 @@
|
|
7
7
|
自分でもよくわからなくなってきたため、もしよろしければ何か解決策をいただければと思います。
|
8
8
|
よろしくお願いします><
|
9
9
|
|
10
|
+
**追記**
|
11
|
+
```lang
|
12
|
+
$rbenv install 2.4.1
|
13
|
+
と打ちましたが、
|
14
|
+
$ ruby -v
|
15
|
+
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
|
16
|
+
と、バージョンアップもできていません。
|
17
|
+
```
|
18
|
+
|
10
19
|
試したコマンドの1部
|
11
20
|
```lang
|
12
21
|
My:.bundle fig$ bundle config
|
3
マークアップ
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
よろしくお願いします><
|
9
9
|
|
10
10
|
試したコマンドの1部
|
11
|
-
|
11
|
+
```lang
|
12
12
|
My:.bundle fig$ bundle config
|
13
13
|
Settings are listed in order of priority. The top value will be used.
|
14
14
|
|
@@ -150,4 +150,5 @@
|
|
150
150
|
extconf failed, exit code 1
|
151
151
|
|
152
152
|
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1 for inspection.
|
153
|
-
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/gem_make.out
|
153
|
+
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/gem_make.out
|
154
|
+
```
|
2
ノコギリバージョン
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
昨日、nokogiriのインストールでエラーが出るという質問を投稿させていただきました。
|
2
2
|
nokogiriのせいなのかと思っていたのですが、そもそもrails sもできないという状況です。
|
3
3
|
railsを消した記憶もないのですが・・・OSのバージョンアップのせいなのかどうなのか・・・
|
4
|
+
nokogiriも入っているみたいですが、バージョンが1.5.1みたいです。
|
4
5
|
|
5
6
|
bundlerはuser/local/binに入っています。
|
6
7
|
自分でもよくわからなくなってきたため、もしよろしければ何か解決策をいただければと思います。
|
1
sudoコマンド追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -34,4 +34,119 @@
|
|
34
34
|
My:spacemarket fig$ bundler -v
|
35
35
|
/Library/Ruby/Site/2.3.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundler (Gem::GemNotFoundException)
|
36
36
|
from /Library/Ruby/Site/2.3.0/rubygems.rb:263:in `bin_path'
|
37
|
-
from /usr/local/bin/bundler:22:in `<main>'
|
37
|
+
from /usr/local/bin/bundler:22:in `<main>'
|
38
|
+
|
39
|
+
My:spacemarket fig$ sudo gem install rails
|
40
|
+
Password:
|
41
|
+
Building native extensions. This could take a while...
|
42
|
+
ERROR: Error installing rails:
|
43
|
+
ERROR: Failed to build gem native extension.
|
44
|
+
|
45
|
+
current directory: /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1/ext/nokogiri
|
46
|
+
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180116-32652-18sk4ej.rb extconf.rb
|
47
|
+
checking if the C compiler accepts ... yes
|
48
|
+
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
|
49
|
+
Building nokogiri using packaged libraries.
|
50
|
+
Using mini_portile version 2.3.0
|
51
|
+
checking for iconv.h... yes
|
52
|
+
checking for gzdopen() in -lz... yes
|
53
|
+
checking for iconv... yes
|
54
|
+
************************************************************************
|
55
|
+
IMPORTANT NOTICE:
|
56
|
+
|
57
|
+
Building Nokogiri with a packaged version of libxml2-2.9.5.
|
58
|
+
|
59
|
+
Team Nokogiri will keep on doing their best to provide security
|
60
|
+
updates in a timely manner, but if this is a concern for you and want
|
61
|
+
to use the system library instead; abort this installation process and
|
62
|
+
reinstall nokogiri as follows:
|
63
|
+
|
64
|
+
gem install nokogiri -- --use-system-libraries
|
65
|
+
[--with-xml2-config=/path/to/xml2-config]
|
66
|
+
[--with-xslt-config=/path/to/xslt-config]
|
67
|
+
|
68
|
+
If you are using Bundler, tell it to use the option:
|
69
|
+
|
70
|
+
bundle config build.nokogiri --use-system-libraries
|
71
|
+
bundle install
|
72
|
+
|
73
|
+
Note, however, that nokogiri is not fully compatible with arbitrary
|
74
|
+
versions of libxml2 provided by OS/package vendors.
|
75
|
+
************************************************************************
|
76
|
+
Extracting libxml2-2.9.5.tar.gz into tmp/x86_64-apple-darwin17/ports/libxml2/2.9.5... OK
|
77
|
+
Running 'configure' for libxml2 2.9.5... OK
|
78
|
+
Running 'compile' for libxml2 2.9.5... ERROR, review '/Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1/ext/nokogiri/tmp/x86_64-apple-darwin17/ports/libxml2/2.9.5/compile.log' to see what happened. Last lines are:
|
79
|
+
========================================================================
|
80
|
+
CCLD libxml2.la
|
81
|
+
CC testdso.lo
|
82
|
+
CCLD testdso.la
|
83
|
+
CC xmllint.o
|
84
|
+
CCLD xmllint
|
85
|
+
ld: warning: ignoring file /usr/local/Cellar/xz/5.2.3/lib/liblzma.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/xz/5.2.3/lib/liblzma.dylib
|
86
|
+
Undefined symbols for architecture i386:
|
87
|
+
"_lzma_auto_decoder", referenced from:
|
88
|
+
_xz_head in libxml2.a(xzlib.o)
|
89
|
+
"_lzma_code", referenced from:
|
90
|
+
_xz_decomp in libxml2.a(xzlib.o)
|
91
|
+
"_lzma_end", referenced from:
|
92
|
+
___libxml2_xzclose in libxml2.a(xzlib.o)
|
93
|
+
"_lzma_properties_decode", referenced from:
|
94
|
+
_is_format_lzma in libxml2.a(xzlib.o)
|
95
|
+
ld: symbol(s) not found for architecture i386
|
96
|
+
clang: error: linker command failed with exit code 1 (use -v to see invocation)
|
97
|
+
make[2]: *** [xmllint] Error 1
|
98
|
+
make[1]: *** [all-recursive] Error 1
|
99
|
+
make: *** [all] Error 2
|
100
|
+
========================================================================
|
101
|
+
*** extconf.rb failed ***
|
102
|
+
Could not create Makefile due to some reason, probably lack of necessary
|
103
|
+
libraries and/or headers. Check the mkmf.log file for more details. You may
|
104
|
+
need configuration options.
|
105
|
+
|
106
|
+
Provided configuration options:
|
107
|
+
--with-opt-dir
|
108
|
+
--without-opt-dir
|
109
|
+
--with-opt-include
|
110
|
+
--without-opt-include=${opt-dir}/include
|
111
|
+
--with-opt-lib
|
112
|
+
--without-opt-lib=${opt-dir}/lib
|
113
|
+
--with-make-prog
|
114
|
+
--without-make-prog
|
115
|
+
--srcdir=.
|
116
|
+
--curdir
|
117
|
+
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/$(RUBY_BASE_NAME)
|
118
|
+
--help
|
119
|
+
--clean
|
120
|
+
--use-system-libraries
|
121
|
+
--enable-static
|
122
|
+
--disable-static
|
123
|
+
--with-zlib-dir
|
124
|
+
--without-zlib-dir
|
125
|
+
--with-zlib-include
|
126
|
+
--without-zlib-include=${zlib-dir}/include
|
127
|
+
--with-zlib-lib
|
128
|
+
--without-zlib-lib=${zlib-dir}/lib
|
129
|
+
--enable-cross-build
|
130
|
+
--disable-cross-build
|
131
|
+
/Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:402:in `block in execute': Failed to complete compile task (RuntimeError)
|
132
|
+
from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in `chdir'
|
133
|
+
from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in `execute'
|
134
|
+
from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:115:in `compile'
|
135
|
+
from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:154:in `cook'
|
136
|
+
from extconf.rb:365:in `block (2 levels) in process_recipe'
|
137
|
+
from extconf.rb:257:in `block in chdir_for_build'
|
138
|
+
from extconf.rb:256:in `chdir'
|
139
|
+
from extconf.rb:256:in `chdir_for_build'
|
140
|
+
from extconf.rb:364:in `block in process_recipe'
|
141
|
+
from extconf.rb:262:in `tap'
|
142
|
+
from extconf.rb:262:in `process_recipe'
|
143
|
+
from extconf.rb:548:in `<main>'
|
144
|
+
|
145
|
+
To see why this extension failed to compile, please check the mkmf.log which can be found here:
|
146
|
+
|
147
|
+
/Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/mkmf.log
|
148
|
+
|
149
|
+
extconf failed, exit code 1
|
150
|
+
|
151
|
+
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1 for inspection.
|
152
|
+
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/gem_make.out
|