imagemagick installation error - architecture mismatch - macos

I am trying to install ImageMagick via macports but am getting the following error msg:
Error: Cannot install imagemagick for the arch(s) 'x86_64' because
Error: its dependency bzip2 is only installed for the arch 'i386'
Error: and the configured universal_archs 'i386 ppc' are not sufficient.
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>
Any suggestion would be greatly appreciated :)

This looks like the same question that was asked on Superuser, "Mac ports installation of gcc46 failing due to architecture problems", and on Apple.Stackexchange, "Mac ports installation of gcc46 failing due to architecture problems".
Did you start building these MacPort binaries on MacOS 10.5, then upgrade to 10.6 -- or move to a new machine with 10.6 and copy the MacPorts files from the old machine -- and then build imagemagick under MacOS 10.6?
Does your configuration file /opt/local/etc/macports/macports.conf differ from macports.conf.default? That's a sign that the MacPorts environment was migrated from 10.5 instead of being created new on 10.6. There should be a line there, reading universal_archs ppc i386 ppc64 x86_64.
The official MacPorts migration instructions explain how to essentially update your environment for MacOS X 10.6 and do a complete rebuild. Their instructions:
Reinstall Xcode and MacPorts
Update macports.conf
Save a list of installed ports
Uninstall all ports
Reinstall just those you still want
The blog post Universal Binaries in Macports gives slightly different instructions. Basically it comes down to:
update the universal_archs line in macports.conf
force a complete rebuild with $ sudo port upgrade --force installed -

Related

cannot run gdb on mac's terminal even after codesign

I'm trying to install gdb on my Mac. I downloaded it with brew and code signed it according to the instructions on https://sourceware.org/gdb/wiki/BuildingOnDarwin
However, when I run gdb in the terminal, it still doesn't work and output the following error message:
dyld: Library not loaded: /usr/local/opt/mpfr/lib/libmpfr.6.dylib
Referenced from: /usr/local/bin/gdb
Reason: image not found
Trace/BPT trap: 5
Does anyone know what it means? My Mac version is 10.11.5, by the way
I ran into the same issue on macOS 10.11.6, I'm guessing (and this is just speculation; I don't actually know how Homebrew works) that Homebrew installed a pre-compiled version of gdb which depended on a library that existed on the machine it was compiled with, but did not exist on my machine.
At any rate, I was able to get a working version of gdb by downloading & unzipping version 7.12 (8.1 failed to compile on my machine) from http://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz, then compiling & installing with (IIRC) the commands:
./configure
make
sudo make install
I blogged about this and the subsequent steps (getting the executable code-signed so that macOS would allow it to debug other processes, etc) here: http://prust.github.io/posts/2018-02-24-interactively-debugging-c-in-sublime-text-3.html
I get this problem too. And I find solution in https://qiita.com/yoshixj/items/698d94337ca447e9b9de
Since we don't have /usr/local/opt/mpfr/lib/libmpfr.6.dylib
we can simply install it. Use this command:
brew install gawk
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc
I had the same error message when running gdb after installing it from Homebrew (gdb v8.1) on a Mac OS X El Capitan v10.11.6. However, installing it via Homebrew using its Python binary solved the issue:
brew install gdb --with-python
Beaware that this may take some time, since you'd be compiling gdb from scratch. After it's done, you still need to create a certificate and codesign gdb.

Issue completing the install script for pkgin/pkgsrc for OSX 10.7, segfault running pkgin

In attempting to install pkgin/pkgsrc (NetBSD-based package managment tools), using the saveosx.org instructions and github repository.
The repository has installation instructions, which I followed, up to the point of a specific but uninformative error:
It looks like there was an issue running: sudo /usr/pkg/bin/pkgin -y update
I tried running this file directly, but my terminal reports a segmentation fault.
I'm running OSX 10.7.5 and have Xcode-Command-Line Tools installed, but I find no information about Darwin version compatibility on NetBSD's site. My searches have revealed no one else reporting issues using pkgin.
Version 5.0+ is supported according to www.netbsd.org/docs/pkgsrc/platforms.html#darwin, which according to wikipedia (en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history) corresponds to OSX 10.1.1+
What options do I have besides upgrading my operating system and hoping the problem is fixing by having newer libraries or a newer kernel?
For reference:
www.pkgsrc.org/#docs
www.perkin.org.uk/pages/pkgsrc-binary-packages-for-osx.html
wiki.netbsd.org/pkgsrc/pkgsrc_64bit_osx/
Related question: Unable to run pkgin on Mac OSX
It would appear that the pkgin binary currently supplied by saveosx is compiled only for more recent OSX releases. It needs at least a Darwin-14.x kernel, or newer, so it won't even run on 10.9.5. Unfortunately the script fails to check the OSX version before it blindly tries to run the pkgin binary, causing the program to crash.
saveosx is basically a painfully obnoxious, rather ugly, and poorly implemented. set of scripts that are superfluous to actually using pkgsrc on OSX.
I would strongly recommend avoiding saveosx for the time being.
Instead I would recommend trying the following well supported alternative:
OSX binary pkgsrc packages
A 32-bit Snow Leopard version that runs on 10.6.8 and newer is available, and I just checked the distribution directory and I see some 2015Q1 i386 packages are just now available, still supporting 10.6.8:
2015Q1 32-bit (i386) Snow Leopard and newer pkgsrc bootstrap
You can of course also build your own pkgsrc bootstrap for any specific OSX environment:
pkgsrc home

Homebrew doesn't work on snow leopard

I have a fresh installation of OsX 10.6.8
Yesterday I installed XCode 3.x and then homebrew.
brew doctor << was ok
brew update << updated ok
brew install python << gave an error similar to this one:
==> ./configure --prefix=/usr/local/Cellar/readline/6.2.4 --mandir=/usr/local/Ce
checking for gcc... llvm-gcc
checking for C compiler default output file name...
configure: error: in `/private/tmp/readline-lGgV/readline-6.2':
configure: error: C compiler cannot create executables
See `config.log' for more details.
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
I thought was a problem due to my old XCode, so I uninstalled it and then loaded GCC-10.6.pkg but the error was the same.
I thought that also osx-gcc could be outdate so I managed to find a XCode 4.2 and I installed it, but the error doesn't change
I found out that there is no "Command Line Tools for Xcode" for osX 10.6.8 so now I'm out of options.
There is a newer version of XCode (4.3.2) that is compatible with 10.6.8 but I wasn't able to get it, and sincerely, now I don't think that that could be the problem.
So, now, I'm out of options.
I can't upgrade to Lion, because my laptop doesn't support it.
The sad thing is that yesterday I decided to format my hd and reinstall OsX just to have a new, fresh, clean installation of homebrew!!!!!
Please.....help!!!!

os x lion macport problem

I'm trying to install tomcat6 on OS X Lion using via macport 2.0. However, there is problem during the installation of one of the dependencies "commons-dbcp"
The messages are as follows
---> Building commons-dbcp
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install commons-dbcp
After upgrading my OS to Lion, this kind of problem with macport happens alot and I don't know how to fix. It stopped me from installing a number of packages which I could install without a problem on Snow leopard.
Anyone could help me on this? Thanks
Make sure you have XCode 4.1+ installed and then update (re-install) your MacPorts to version 2.0.0
more instruction available here.
I faced similar problem, As pointed by Shayanlinux, installing XCode 4.1+ and running a sudo port selfupdate fixed the problem.

Where is sdl-config installed on MacOS 10.6 (Snow Leopard)

After installing SDL and SDL-devel in MacOS X 10.6 (Snow Leopard), trying to configure some source code that requires SDL yields:
checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: *** SDL version 1.2.0 not found!
Does anyone know where to find sdl-config? I guess I can build SDL from source, but why should I have to, when there exist pre-built packages?
you can use macports to install libsdl or libsdl-devel (v1.2 or v1.3)
http://www.macports.org/
after installing macports to install libsdl type
port install libsdl
it will install sdl-config at /opt/local/bin
I had the exact same problem.
I found out that sdl-config was installed in two locations:
/sw/bin/sdl-config
and
/opt/local/bin/sdl-config
In the one located in /sw/bin I changed the prefix to /opt/local — then it worked.
The output you're showing is from a unix style configure for automake. According to this site: http://www.libsdl.org/faq.php?action=listentries&category=7 (second and third questions) you can't use the dmg (which you showed the link for) as a unix style installation directly. See the links on the above page for a DarwinPorts or Fink installation or, indeed, you'll have to build it from source as described on the page.
To directly answer your question, you should find the libraries in /Library/Frameworks/.

Resources