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/.
Related
I was trying to get wxHaskell installed on my mac (Osx Mavericks). I fixed the issue with gcc, and I used brew to install wxmac (version 3.0). The issue that keeps coming up is that the hackage cabal searches for looks for wx 2.9, while I have 3.0. It says that it can't find:
Warning: No config found to match: /usr/local/bin/wx-config --version=2.9 --version-full
in /usr/local/Cellar/wxmac/3.0.0.0/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
I can't find any way to install a different version of wx through brew. Does anyone have a fix?
Thanks!
I've just upgraded to osx mavericks, and I want to install ruby 2.0, but I'm getting configure: error: cannot run C compiled programs. errors.
I update rvm with rvm get stable and then type rvm install 2.0.0 and get an error directing me to a log file. The log file contains:
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/Users/mattroberts/.rvm/src/ruby-2.0.0-p247':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
So, I tried listing the versions I do have. It tells me i have 1.9.3-p392 so I uninstall that one and re-install to see if that works - same error.
Do I need to re-install / update xcode, or is there another solution?
Thanks!
If you haven't upgraded Xcode after upgrading to Mavericks you should do so
After that, open a command prompt and type:
xcode-select --install
This will install xcode command tools that have been deleted by OSX update.
After that it should work okay.
The suggested solutions did not solve my issue (XCode at newest version, command line tools installed). I used rvm install ruby-1.9.3 --with-gcc=clang and that worked.
I thought rvm used to use clang for OSX by default. Not sure if I remember that wrong or something changed / this is no longer the best thing to do. Nevertheless it made the install work for me.
After Edu's comment, the github rvm issues page he referenced warns:
#marksands please be sure you know what you are duing, ruby 1.9.3
compiled with clang is not "safe", it can segfault, thread related
issues to be expected, consider reinstalling ruby --with-gcc=gcc42 or
just let rvm install gcc 4.6, only ruby 2.0.0 is fully compatible with
clang
This issue points out issue with gcc46 on Mavericks:
The gem in question uses different language - not C/C++, it uses
Objective-C - so it's not the compiler fault, you can build gcc-4.6
with support for Objective-C - it's just not done by default.
You have two options now, both start with uninstallig gcc-4.6 and
then:
• Install apple-gcc42
• Install gcc-4.6 with --enable-objc
this is supposed to be fixed, run:
rvm get head
rvm remove 1.9.3
rvm install 1.9.3
do not use extra flags
What ended up working for me was installing XCode then RUNNING Xcode then trying to reinstall.
Running
rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')
Corrected my compiler issue in Mavericks
Solution:
unset SDKROOT
This worked for me. I hope it would for you too.
I tried to reinstall xcode along with xcode developer tools. Didn’t work. The same error.
Try to run with env -i bash —noprofile —norc to see whether your env vars are causing the issue to further investigate.
Ran into the very same issue (on 10.8.5, all up to date). Ruby 2.0.0 installed fine, but not 1.9.3. This solution worked for me.
cd into the ruby path (found in config.log), then
issue .configure (with all options, as found in config.log)
make
make install
Then:
rvm use 1.9.3 --create
I'm trying to Compile Omnet++ 4.1 on Mountain Lion. When I type:
./configure
I get the following error:
configure: error: Cannot build Tcl/Tk apps, probably due to misconfigured or missing X11 headers or libs. Check config.log for more info!
I remember compiling it on Lion without any problems, any ideas how to get it working on Mountain Lion?
Found a solution for this over on the omnetpp google group, I'll paste it in here:
Hi all,
just tried Mountain Lion, which was released yesterday. Unfortunately,
the new MacOSX does not include X11 by default. I really HATE this
decision. As a result, it does not pass the Tcl/Tk checks when we do
./configure.
After hours of efforts, I finally figured out how to work around this:
download and install XQuartz at http://xquartz.macosforge.org/landing/
make a symbolic link at /usr/include: sudo ln -s /opt/X11/include/X11 /usr/include
and you are all set. In 2, you may also set some environment variables
accordingly instead of making the symbolic link.
Future OMNet++ releases may consider setting associated environment
variables so that the compiler looks for Xlib.h in
/opt/X11/include/X11 with Mountain Lion.
Just successfully compiled the simulator and haven't encountered other
problems yet.
Have fun,
TS
If you have the same problem on Linux (ubuntu) a solution is run this in the console:
sudo apt-get install build-essential gcc g++ bison flex perl tcl-dev tk-dev blt libxml2-dev zlib1g-dev openjdk-6-jre doxygen graphviz openmpi-bin libopenmpi-dev libpcap-dev
Installing XQuartz is still the solution to overcome this problem.
I've decided to start experimenting with Ruby to get out of my little Java box, and want to start with a little personal project taking some written addresses and geocodes them.
As a start, I got the Koans and started messing about with them from the command line, just using Ruby as installed in OS X (ruby -version returns 1.8.7). So far, so good. Then I used gem install geocoder, which worked nicely. But to work with some of it's objects, it needs json, so on to gem install json when...
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/sharakan/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Users/sharakan/.gem/ruby/1.8/gems/json-1.7.3 for inspection.
Results logged to /Users/sharakan/.gem/ruby/1.8/gems/json-1.7.3/ext/json/ext/parser/gem_make.out
The gem_make.out file just has the same mkmf.rb error.
After doing a bit of searching, I found that people with similar sounding problems found resolution by installing XCode. I haven't seen my XCode DVD in a long time, and the version available from Apple now requires 10.7.
I also found some information that made RVM sound like it might solve the problem. But sadly that too failed with compilation problems:
[2012-06-11 20:50:00] ./configure --prefix=/Users/sharakan/.rvm/rubies/ruby-1.9.3-p194 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/sharakan/.rvm/usr
configure: WARNING: unrecognized options: --with-libyaml
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/sharakan/.rvm/src/ruby-1.9.3-p194':
configure: error: C compiler cannot create executables
See `config.log' for more details
So where to go next? Do I really need to purchase Lion to get Ruby working on my machine?
If your issue that you don't have xcode installed, you really just need make, gcc, etc installed.
The easiest way to do this to just use OS X GCC Installer
Installing that should get you on your way.
You may be able to get a Snow Leopard version of Xcode/Developer Tools from the Apple developer site. You might also want to look into Xcode, GCC and Homebrew, from Kenneth Reitz: standalone GCC tools without Xcode. There is also an official Apple offshoot, although that may be Lion only.
You could try RailsInstaller for OSX which includes RVM, Ruby, Rails and most important libraries that are needed for ruby, you can download it here https://github.com/railsinstaller/railsinstaller-nix/downloads.
Use RVM to install ruby. I highly recommend using RVM, especially if you are going to possibly have multiple projects that may use different versions of Ruby (or even JRuby!)
https://rvm.io/rvm/install/
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 -