Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

MySQL 5.5.14 fails with "‘strnlen’ was not declared in this scope" #6827

Closed
orbiteleven opened this issue Aug 4, 2011 · 7 comments
Closed

Comments

@orbiteleven
Copy link

Trying to install mysql 5.5 on OSX 10.7 and it fails with the following:

Installation output: https://gist.github.com/1123651
brew doctor: https://gist.github.com/1123655

@jacknagel
Copy link
Contributor

I can't guarantee that this will solve your problem, but you probably need to install XCode 4.1 since you're using Lion--there are quite a few compatibility issues with 3.2.x on 10.7.

@adamv
Copy link
Contributor

adamv commented Aug 4, 2011

Xcode 4.1 is needed for Lion; older versions are not supported by Homebrew and don't work well in general.

@adamv adamv closed this as completed Aug 4, 2011
@orbiteleven
Copy link
Author

...and it is installed. As well as the Java Developer tools from Apple.

Do you see something that indicates it's not?

@adamv adamv reopened this Aug 4, 2011
@adamv
Copy link
Contributor

adamv commented Aug 4, 2011

Xcode: 3.2.5 :

==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 22027d5fee3acf69b9f4d58f062752f820b811eb
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: quad-core 64-bit arrandale
OS X: 10.7
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 3.2.5
GCC-4.0: build 5494 
GCC-4.2: build 5664 
LLVM: build 2333 
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/gcc-4.2
CFLAGS:  -w -pipe -O3
CXXFLAGS:  -w -pipe -O3
CPPFLAGS: -I/usr/local/Cellar/readline/6.2.1/include
LDFLAGS: -L/usr/local/Cellar/readline/6.2.1/lib
MAKEFLAGS: -j4
PKG_CONFIG_PATH: /usr/local/Cellar/readline/6.2.1/lib/pkgconfig

@orbiteleven
Copy link
Author

whoa nelly. my bad. it's installed, perhaps not correctly. will re-install, restart and try again. thanks.

@orbiteleven
Copy link
Author

Yup. PEBKAC. Turns out I had installed the "Install Xcode" app, but not actually installed Xcode 4.1

@ttilley
Copy link
Contributor

ttilley commented Feb 9, 2012

Note to future googlers: if you hack-install 3.2.6 on lion and 4.1 on top of it with the hopes of building universal binaries that include PPC, then you probably HAVE NOT installed all of xcode 4.1. At least this is the case using the 'InstallXcodeLion' package. To confuse matters even further, homebrew may claim that you are using xcode 4.0!

If you are further entrenched in madness and attempting to install a usable clang with ARC via 4.2, then all hope is lost. Give up. You cannot win this battle. Only failure and disappointment await you.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants