ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

CocoaPods 安装

2021-03-30 17:01:14  阅读:275  来源: 互联网

标签:安装 documentation compiling cocoapods ffi ruby 2.6 CocoaPods


 

1. 更新了系统,发现 $ sudo gem install cocoapods 安装报错。

 

$ sudo gem install cocoapods
Password:
Building native extensions. This could take a while...
/Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /usr/local/mysql in PATH, mode 040777
ERROR:  Error installing cocoapods:
    ERROR: Failed to build gem native extension.

    current directory: /Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c
/Users/WeepYan/.rvm/rubies/ruby-2.6.0/bin/ruby -I /Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0 -r ./siteconf20201208-3504-1o2g6p3.rb extconf.rb
/Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/mkmf.rb:1565: warning: Insecure world writable dir /usr/local/mysql in PATH, mode 040777
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi... yes
checking for ffi_prep_closure_loc() in -lffi... yes
checking for ffi_prep_cif_var()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
creating extconf.h
creating Makefile

current directory: /Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c
make "DESTDIR=" clean

current directory: /Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c
make "DESTDIR="
compiling AbstractMemory.c
compiling ArrayType.c
compiling Buffer.c
compiling Call.c
compiling ClosurePool.c
compiling DynamicLibrary.c
compiling Function.c
compiling FunctionInfo.c
compiling LastError.c
compiling LongDouble.c
compiling MappedType.c
compiling MemoryPointer.c
compiling MethodHandle.c
compiling Platform.c
compiling Pointer.c
compiling Struct.c
compiling StructByValue.c
compiling StructLayout.c
compiling Thread.c
compiling Type.c
compiling Types.c
compiling Variadic.c
compiling ffi.c
linking shared-object ffi_c.bundle
ld: warning: directory not found for option '-L/usr/local/opt/libksba/lib'
ld: warning: directory not found for option '-L/usr/local/opt/libksba/lib'
ld: warning: directory not found for option '-L/usr/local/opt/libksba/lib'

current directory: /Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c
make "DESTDIR=" install
make: /usr/local/opt/coreutils/bin/gmkdir: No such file or directory
make: *** [.sitearchdir.time] Error 1

make install failed, exit code 2

Gem files will remain installed in /Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/gems/ffi-1.13.1 for inspection.
Results logged to /Users/WeepYan/.rvm/rubies/ruby-2.6.0/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-17/2.6.0/ffi-1.13.1/gem_make.out

 

2. 安装 coreutils即可 $ brew install coreutils 

 

$ brew install coreutils
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/coreutils-8.32.catalina.bot
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/f40ba727ec1bb54300c7c
######################################################################## 100.0%
==> Pouring coreutils-8.32.catalina.bottle.1.tar.gz
==> Caveats
Commands also provided by macOS have been installed with the prefix "g".
If you need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:
  PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
==> Summary

标签:安装,documentation,compiling,cocoapods,ffi,ruby,2.6,CocoaPods
来源: https://www.cnblogs.com/pinweyshg/p/14103467.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有