I'm doing a clean install of Mavericks, and accidentally did
brew install gcc
which is taking over half an hour, maybe more. Should I terminate it? I know now that I should have installed a specific gcc (maybe gcc48) but it's too late and my macbook air is breathing hard.
Currently done downloading all 5 dependencies, but stuck on the "Installing gcc" part. It's downloaded a gcc-4.9.1.tar.bz2, configured and built it, and is stuck on making the bootstrap.
Any advice is appreciated.
This was good advice I saw too late: https://apple.stackexchange.com/questions/38222/how-do-i-install-gcc-via-homebrew
Asked here first: https://superuser.com/questions/788256/brew-install-gcc-mac-os-10-9-mavericks
You do need gcc installed to get gfortran, and you do need a fortran compiler for scipy. Homebrew will install a "bottled" (i.e., precompiled) version of the gcc package, which is very fast, if you have the Xcode Command Line Tools installed. These are separate from XCode proper. You can install them with xcode-select --install.
There is no particular need to install a particular version of gcc (and I think those may not be bottled, so they will be equally slow).
In general, interrupting Homebrew with Ctrl+C is safe and Homebrew will automatically recover.
You may be interested in the homebrew-python tap.
Try this to force the bottle (pre-compiled) installation
brew install gcc --force-bottle
patience a one-word answer... Launch this thing overnight, or budget the time.
Just ran an update on 10.20_4 for a ... 322 minutes wait. That's about 5.5 hours.
Oh, and disk space on your system partition needs > 10GB free.
🍺 /usr/local/Cellar/gcc/10.2.0_4: 1,467 files, 331.8MB, built in 130 minutes 33 seconds
🍺 /usr/local/Cellar/openblas/0.3.15: 23 files, 120.3MB, built in 19 minutes 28 seconds
🍺 /usr/local/Cellar/hdf5/1.12.0_3: 268 files, 16.4MB, built in 5 minutes 5 seconds
🍺 /usr/local/Cellar/netcdf/4.8.0: 95 files, 6.5MB, built in 5 minutes 54 seconds
🍺 /usr/local/Cellar/cython/0.29.23: 440 files, 8.9MB, built in 1 minute 2 seconds
🍺 /usr/local/Cellar/numpy/1.20.2: 1,005 files, 24.3MB, built in 2 minutes 15 seconds
🍺 /usr/local/Cellar/doxygen/1.9.1: 9 files, 15.5MB, built in 1 minute 54 seconds
🍺 /usr/local/Cellar/little-cms2/2.12: 21 files, 1MB, built in 27 seconds
🍺 /usr/local/Cellar/openjpeg/2.4.0: 522 files, 13.1MB, built in 25 seconds
🍺 /usr/local/Cellar/nspr/4.30: 86 files, 1.1MB, built in 24 seconds
🍺 /usr/local/Cellar/nss/3.64: 224 files, 42.4MB, built in 16 minutes 14 seconds
🍺 /usr/local/Cellar/qt#5/5.15.2: 10,384 files, 190.2MB, built in 64 minutes 4 seconds
🍺 /usr/local/Cellar/poppler/21.05.0: 476 files, 26MB, built in 3 minutes 55 seconds
🍺 /usr/local/Cellar/unixodbc/2.3.9_1: 44 files, 1.9MB, built in 1 minute 16 seconds
🍺 /usr/local/Cellar/webp/1.2.0: 39 files, 2.2MB, built in 41 seconds
🍺 /usr/local/Cellar/zstd/1.4.9_1: 31 files, 2.6MB, built in 31 seconds
🍺 /usr/local/Cellar/gdal/3.2.2_4: 329 files, 59.7MB, built in 17 minutes 26 seconds
Precompiled fix: 8 minute install time!
I started out unfortunately trying to brew install gcc on my Apple Mojave machine dual core i5. After about an hour of no movement and insane overheating, I terminated the process.
I installed MacPorts. Then installed gcc12 via port. The whole thing including dependencies was done in 8 minutes.
See here. https://ports.macports.org/port/gcc12/
Related
I am trying to upload my apk on Google Play Console, however, I am facing the following two issues.
Your app currently targets API level 27 and must target at least API level 28 to ensure it is built on the latest APIs optimized for security and performance.
Native platforms - armeabi-v7a
For the Issue 1: I believe that I need to use android.sdk = 28 in the buildozer.spec, hence I changed it. On running the buildozer android release it says the following
# WARNING: Config token app android.sdk is deprecated and ignored, but you set value 28
For the Issue 2: I have changed android.api = 28 and android.arch = arm64-v8a. but when I build and upload the APK on Google Play Console, it says
Native platforms : armeabi-v7a
Please assist me Guys!
We have an Angular 6 project which contains approximately 660 MB of packages in the node_modules folder. Since the project's inception, upon building the project we would remove the entire node_modules folder and then perform an npm install to re-download and install all of the packages found in package.json.
However, the build times have increased to 15 - 20 minutes. If we comment out the command to remove that folder the build time is between 3 - 4 minutes. What are we gaining to always have a brand new download of the defined packages?
In my app I have a default Documentation target that's been there for a long time.
Today, out of the blue (it seems), it stops building with:
objc[3964]: Objective-C garbage collection is no longer supported.
/Users/case/Library/Developer/Xcode/DerivedData/Talk-ghsjogqghrvpujdilbabqcornjqr/Build/Intermediates.noindex/Talk.build/Debug-iphoneos/Documentation.build/Script-48338F031615E3F60033F4C1.sh: line 2: 3964 Abort trap: 6 /Applications/appledoc --verbose xcode $SOURCE_ROOT/$PROJECT_NAME
Command /bin/sh failed with exit code 134
I tried Xcode > Product > Clean Build Folder..., emptying the DerivedData directory, and restarting Xcode.
Any idea how to fix this rather annoying issue?
This looks like you may have an old copy of appledoc in your /Applications directory. I suspect you built it at some point, installed it, and never upgraded it. I suspect your copy is v2.0 (~2010), which had garbage collection turned on. Garbage collection has been deprecated for years, and was recently removed from the OS. The current version is 2.2.1 (released in 2015).
Upgrade appledoc. My preferred way to handle those kinds of packages is with Homebrew
rm /Applications/appledoc
brew install appledoc
I installed Octave via Homebrew using the instructions given here.
When I try to generate a plot, I get the following message:
Fontconfig error: Cannot load default config file
warning: could not match any font: *-normal-normal-10
warning: called from
axes at line 66 column 10
gca at line 58 column 9
newplot at line 148 column 8
surf at line 70 column 9
sombrero at line 65 column 5
I then get a long series of the following messages:
warning: ft_render: unable to load appropriate font
warning: could not match any font: *-normal-normal-10
Usually the plot appears once, but if I call it again then Octave quits with the following message.
panic: Segmentation fault: 11 -- stopping myself...
attempting to save variables to 'octave-workspace'...
warning: unable to open 'octave-workspace' for writing...
warning: called from
__gnuplot_drawnow__>gnuplot_trim_term at line 368 column 10
__gnuplot_drawnow__>gnuplot_set_term at line 119 column 20
__gnuplot_drawnow__ at line 84 column 16
Segmentation fault: 11
In discussions of similar errors I have often seen references to /etc/fonts/fonts.conf. My /etc directory does not contain a fonts subdirectory. This may be the source of the problem, but I do not know how to fix it. When I run, brew install fontconfig, I get Warning: fontconfig-2.11.1_1 already installed. When I run sudo find / -name fonts.conf, I get /opt/X11/lib/X11/fontconfig/fonts.conf.
brew doctor produces the following warnings, which may be relevant and which I do not know how to fix (short of uninstalling Anaconda):
Warning: Anaconda is known to frequently break Homebrew builds, including Vim
and MacVim, due to bundling many duplicates of system and Homebrew-available
tools.
If you encounter a build failure please temporarily remove Anaconda
from your $PATH and attempt the build again prior to reporting the
failure to us. Thanks!
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/greg/anaconda/bin/curl-config
/Users/greg/anaconda/bin/freetype-config
/Users/greg/anaconda/bin/libdynd-config
/Users/greg/anaconda/bin/libpng-config
/Users/greg/anaconda/bin/libpng16-config
/Users/greg/anaconda/bin/python-config
/Users/greg/anaconda/bin/python2-config
/Users/greg/anaconda/bin/python2.7-config
/Users/greg/anaconda/bin/xml2-config
/Users/greg/anaconda/bin/xslt-config
I am running OS X 10.11.3 (El Capitan).
try
brew uninstall fontconfig
brew install fontconfig --universal
if you don't have or don't want to use xquartz, you can use qt
brew uninstall gnuplot
brew install gnuplot --with-qt
Actually, it's not an issue of Octave, but of its complicated setup and misconfiguration of other utilities (especially fontconfig).
For proper work you need to set manually path for fontconfig, so it wouldn't look for fonts in inappropriate directory (/etc/fonts works for Linux installations, but OS X XQuartz goes to different place).
You should run command export FONTCONFIG_PATH=/opt/X11/lib/X11/fontconfig to setup fontconfig proper way. Also you can add line export FONTCONFIG_PATH=/opt/X11/lib/X11/fontconfig to your ~/.bash_profile and restart your terminal, so you don't need to run this command anymore.
So I'm trying to install opencv using Homebrew but it isn't working. I used brew tap homebrew/science and then brew install opencv
What happens is:
==> Installing opencv from homebrew/homebrew-science
==> Installing dependencies for homebrew/science/opencv: gcc, eigen, jpeg, libpng, libtiff, ilmbase, openexr, homebrew/python/numpy
==> Installing homebrew/science/opencv dependency: gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-5.1.0/gcc-5.1.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc-5.1.0.tar.bz2
==> Patching
patching file gcc/jit/Make-lang.in
==> ../configure --build=x86_64-apple-darwin13.4.0 --prefix=/usr/local/Cellar/gcc/5.1.0 --libdir=/usr/local/Cellar/gcc/5.1.0/lib/gcc/5 --enable-langua
==> make bootstrap
And then it just doesn't stop, I've run it for close to an hour. The task on the top of the terminal window (you know, where it says bash generally) keeps rapidly changing, often to things like "ruby" but nothing gets outputted after this point.
Any ideas? Thanks.
Note that it's actually compiling GCC at that point, which is expected to take a long time. Homebrew does provide pre-built binary bottles by default, so it's curious those aren't being used. Is your environment set to build everything from source? You could try brew install gcc --force-bottle
I came across this question with the same problem -
brew tap homebrew/science
brew install opencv
started installing a bunch of dependencies, which worked great until gcc started, where I got:
==> Installing homebrew/science/opencv dependency: gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2
==> Downloading from http://gnu.mirror.iweb.com/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2
######################################################################## 100.0%
==> Patching
patching file gcc/jit/Make-lang.in
patching file gcc/jit/jit-playback.c
Hunk #1 succeeded at 2459 with fuzz 2 (offset 43 lines).
==> ../configure --build=x86_64-apple-darwin15.0.0 --prefix=/usr/local/Cellar/gcc/5.2.0 --libdir=/usr/loc
==> make bootstrap
This process went on for 3 hours before I got annoyed and killed it.
Solution:
Use the brew bottle:
brew install gcc --force-bottle.
It works a treat but does give the following caveat:
GCC has been built with multilib support. Notably, OpenMP may not work:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670
If you need OpenMP support you may want to
brew reinstall gcc --without-multilib
I haven't run into any problems with OpenMP yet. Hope this helps somebody else.
Running MBP 13" (Late 2011) with OSX El Capitain. (It's old, which probably explains the lengthy makes). Credit to #IanLancaster for getting the solution first, but I thought I would elaborate with the caveats.