运行npm install所需的node-gyp... 时看到以下错误,但可能由任何需要的东西触发xcode-select.
xcode-select:错误:工具'xcodebuild'需要Xcode,但是活动的开发人员目录'/ Library/Developer/CommandLineTools'是一个命令行工具实例
问题是什么?
从终端窗口:
当我使用该rm命令时,它只能删除文件.
当我使用该rmdir命令时,它只删除空文件夹.
如果我有一个目录与文件夹中的文件和文件夹嵌套,等等,有没有办法删除所有的文件和文件夹而没有所有的命令输入?
如果它有所作为,我使用终端的mac bash shell,而不是Microsoft DOS或linux.
我正在尝试在我的 Mac 上安装 FFmpeg。
当我做
brew install ffmpeg --with-chromaprint --with-fdk-aac
--with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg
Run Code Online (Sandbox Code Playgroud)
当我尝试使用 FFmpeg 时会发生这种情况
dyld: Library not loaded: /usr/local/opt/rubberband/lib/librubberband.2.dylib
Referenced from: /usr/local/bin/ffmpeg
Reason: image not found
Abort trap: 6
Run Code Online (Sandbox Code Playgroud) 在重新安装OS X 10.14 Mojave和XCode命令行工具之后,我正在尝试为旧项目安装旧的gem版本.我正在尝试安装的gem是scrypt,版本1.2.1,这是authlogic的依赖.
gem install scrypt -v = 1.2.1
返回以下错误:
Building native extensions. This could take a while...
ERROR: Error installing scrypt:
ERROR: Failed to build gem native extension.
current directory: /Users/chris/.rvm/gems/ruby-2.4.4@rails5/gems/scrypt-1.2.1/ext/scrypt
/Users/chris/.rvm/rubies/ruby-2.4.4/bin/ruby -rrubygems /Users/chris/.rvm/gems/ruby-2.4.4@global/gems/rake-12.0.0/exe/rake RUBYARCHDIR=/Users/chris/.rvm/gems/ruby-2.4.4@rails5/extensions/x86_64-darwin-18/2.4.0/scrypt-1.2.1 RUBYLIBDIR=/Users/chris/.rvm/gems/ruby-2.4.4@rails5/extensions/x86_64-darwin-18/2.4.0/scrypt-1.2.1
mkdir -p x86_64-darwin
gcc -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -Wall -msse -msse2 -arch x86_64 -arch i386 -o x86_64-darwin/crypto_scrypt-sse.o -c ./crypto_scrypt-sse.c
gcc -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -Wall -msse -msse2 -arch x86_64 -arch i386 -o x86_64-darwin/memlimit.o -c ./memlimit.c
gcc -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -Wall -msse …Run Code Online (Sandbox Code Playgroud)