i want to install vim via brew for python3, but it always failure.
below is the log:
LiuJustins-MacBook-Pro:~ justin$ brew install vim --without-python --with-python3
==> Downloading https://github.com/vim/vim/archive/v8.0.1400.tar.gz
Already downloaded: /Users/justin/Library/Caches/Homebrew/vim-8.0.1400.tar.gz
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.1400_4/share
==> make
Last 15 lines from /Users/justin/Library/Logs/Homebrew/vim/02.make:
CF_EXPORT const CFCalendarIdentifier kCFISO8601Calendar API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:197:63: error: expected ';' after top level declarator
CF_EXPORT const CFCalendarIdentifier kCFIslamicTabularCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:198:65: error: expected ';' after top level declarator
CF_EXPORT const CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [objects/os_mac_conv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
20 errors generated.
make[1]: *** [objects/os_macosx.o] Error 1
make: *** [first] Error 2
READ THIS: https://docs.brew.sh/Troubleshooting.html
Error: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.
Solution: Manually download the install package ("Command Line Tools for Xcode.dwg") from https://developer.apple.com/download/more/, and rerun the command "brew install vim --without-python --with-python3". Now it works.
Related
I tried installing pip in manjaro(Arch-Linux) from terminal.
I tried running the following command -
sudo pacman -S python-pip
it gave me the following error -
Error Screenshot
python-pip-22.3-1-any.pkg.tar.zst failed to download
Total (1/7) 3.9 MiB 80.0 KiB/s 00:50 [#######################################################################################] 100%
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirrors.ustc.edu.cn : SSL connection timeout
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.csclub.uwaterloo.ca : The requested URL returned error: 404
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.tarnkappe.info : The requested URL returned error: 404
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirrors.ucr.ac.cr : SSL connection timeout
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from manjaro.ipacct.com : The requested URL returned error: 404
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.alpix.eu : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
can anyone tell me how to fix this issue? and why pip wasn't packaged with python in the first place ?
TLDR: just run pacman -Syu python-pip instead of pacman -S python-pip
As Arch Linux(and Manjaro) are rolling release it is not recommended to do do partial updates as they can break packages or in this case after some time the pacman database can be outdated so you should always do an update in order to prevent any issues when installing/updating packages, unless you know explicitly that you do not want to do a partial update you should not do it.
as for the 404 error it is pretty common that the mirrors of the packages delete the old packages for those reasons.
in the case for pip is unknow to me but it should be that python and pip are not the same and should be treated as such
I'm trying to install a tool on my computer via pip on my Mac and have been having issues.
I've seen suggestions on StackOveflow to install the Command Line Tools, to run variants of xcode-select --install, and export CPATH and CPATH. This resolved the header error. I'm now getting the error
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
and
psutil/_psutil_osx.c:36:43: fatal error: CoreFoundation/CoreFoundation.h: No such file or directory
#include <CoreFoundation/CoreFoundation.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
Has anyone come across anything similar?
I encountered the same problem after updating to Catalina macOS 10.15 and installing xcode 12 beta 6. My golang code failed compiling with error
share/go/src/crypto/x509/root_cgo_darwin.go:16:10: fatal error: 'CoreFoundation/CoreFoundation.h' file not found
#include <CoreFoundation/CoreFoundation.h>
Tried xcode-select --install, and other suggestions, none worked.
The final fix I found was to manually link directories that were messed up by the update.
Steps
1: turn off rootless/System Integrity Protection on Mac: Disable SIPe
This setup is needed to make change to system configuration.
reboot your mac and hold-on command + R to enter recovery mode.
Once in Recovery mode, open a Terminal window from the Utilities drop-down menu at the top of the screen. Type the following into the Terminal window:
csrutil disable
2: reboot into normal mode
3: open terminal, make the root folder writable
sudo mount -uw
4: fix the links
cd /System/Library/Frameworks/CoreFoundation.framework
ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers Headers
ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Modules Modules
cd /System/Library/Frameworks/Security.framework
ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers Headers
ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Modules Modules
I am trying to build FoxySheep for python. But I am getting the following error:
Here is the log:
~/Downloads/FoxySheep-master$ cd python_target
~/Downloads/FoxySheep-master/python_target$ make
antlr4 -Dlanguage=Python2 -o generated -visitor ../FoxySheep.g4
make: antlr4: No such file or directory
make: *** [generated/FoxySheepParser.py] Error 1
You need to have antlr4 installed on your system. There is a quickstart on http://www.antlr.org that should get you up and running.
I tried "brew install pyqt" after checking
How to install PyQt on Mac OS X 10.6 and a bunch of blogsites. Specifially,
> brew install qt --with-developer --env=std
But it failed with this error -
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../lib/QtCore.framework/QtCore] Error 1
make[1]: *** [release] Error 2
make: *** [sub-corelib-make_default-ordered] Error 2
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:353:in `open_http': 422 Unprocessable Entity (GitHub::Error)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:689:in `open'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:30:in `open'
from /usr/local/Library/Homebrew/utils.rb:343:in `open'
from /usr/local/Library/Homebrew/utils.rb:373:in `issues_matching'
from /usr/local/Library/Homebrew/utils.rb:401:in `issues_for_formula'
from /usr/local/Library/Homebrew/exceptions.rb:145:in `fetch_issues'
from /usr/local/Library/Homebrew/exceptions.rb:141:in `issues'
from /usr/local/Library/Homebrew/exceptions.rb:184:in `dump'
from /usr/local/Library/brew.rb:162:in `rescue in <main>'
from /usr/local/Library/brew.rb:65:in `<main>'
Can someone please help me out? I see that there's a problem on the open-uri.rb module, but I have almost no experience with Ruby.
updating homebrew got rid of this error for me:
brew update
I tried to install node.js by following instructions here:
https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows)
I got these errors after running ./configure:
$ ./configure
Checking for program g++ or c++ : /usr/bin/g++
2 [main] python 6768 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\time.dll to same address as parent: 0x3A0000 != 0x3D0000
Stack trace:
Frame Function Args
002891E8 6102796B (002891E8, 00000000, 00000000, 00000000)
002894D8 6102796B (6117EC60, 00008000, 00000000, 61180977)
0028A508 61004F1B (611A7FAC, 61249144, 003A0000, 003D0000)
End of stack trace
3 [main] python 5292 fork: child 6768 - died waiting for dll loading, errno 11
/home/user/node/wscript:228: error: could not configure a cxx compiler!
I did a rebaseall on cygwin and ran configure again and got these errors:
$ ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
2 [main] python 6100 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\_functools.dll to same address as parent: 0x3A0000 != 0x3D0000
Stack trace:
Frame Function Args
002891E8 6102796B (002891E8, 00000000, 00000000, 00000000)
002894D8 6102796B (6117EC60, 00008000, 00000000, 61180977)
0028A508 61004F1B (611A7FAC, 6124976C, 003A0000, 003D0000)
End of stack trace
2 [main] python 4424 fork: child 6100 - died waiting for dll loading, errno 11
/home/user/node/wscript:230: error: could not configure a c compiler!
What am I doing wrong?
You can follow the steps on this page:
http://www.garethhunt.com/2008/02/11/cygwin-died-waiting-for-dll-loading/
it worked perfectly for me.
You can avoid installing node.js through Cygwin and try to use native Windows executable which would/should be preffered (unless you have some specific reasons to do otherwise).