#エラー文
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
In file included from dmydln.c:1:
In file included from ./include/ruby/ruby.h:24:
.ext/include/x86_64-darwin18/ruby/config.h:335:10: error: macro name must be an identifier
#define 1
^
In file included from ./main.c:13:
In file included from ./include/ruby.h:33:
In file included from ./include/ruby/ruby.h:24:
.ext/include/x86_64-darwin18/ruby/config.h:335:10: error: macro name must be an identifier
#define 1
^
In file included from miniinit.c:12:
In file included from ./include/ruby/ruby.h:24:
.ext/include/x86_64-darwin18/ruby/config.h:335:10: error: macro name must be an identifier
#define 1
^
compiling miniprelude.c
1 error generated.
make: *** [dmydln.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
1 error generated.
make: *** [main.o] Error 1
make: *** [miniinit.o] Error 1
BUILD FAILED (OS X 10.14.5 using ruby-build 20190615-7-g0e9094b)
Inspect or clean up the working tree at /var/folders/b5/0jpmsmg91x724hd4ysr87hpc0000gn/T/ruby-build.20190724224859.27707
Results logged to /var/folders/b5/0jpmsmg91x724hd4ysr87hpc0000gn/T/ruby-build.20190724224859.27707.log
Last 10 log lines:
#define 1
^
compiling miniprelude.c
1 error generated.
make: *** [dmydln.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
1 error generated.
make: *** [main.o] Error 1
#行ったこと
echo 'export PATH="~/.rbenv/shims:/usr/local/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile which ruby /Users/myname/.rbenv/shims/ruby rbenv install 2.5.3
#気になっているエラー
source ~/.bash_profile -bash: ‘export: command not found
パスを通す最後にこのエラーが出てしまうがwhich ruby で正常になっているので関係はないかもしれません
#エラー文を追加
Last 10 log lines: checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for struct tm.tm_gmtoff... yes checking for external int daylight... yes checking for negative time_t for gmtime(3)... yes checking for localtime(3) overflow correctly... yes checking for sig_t... yes checking whether right shift preserve sign bit... yes configure: error: gettimeofday() must exist make: *** No targets specified and no makefile found. Stop.
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/29 11:58