Lion Osx: How to Install Libfreetype.6.Dylib

Lion OSX: How to install libfreetype.6.dylib?

What library are you trying to install? Could it by chance be ImageMagick? Also, if it's a RubyGem, why is the post tagged with homebrew?

Anyways, I got this error when installing ImageMagick, you need to symlink /opt/X11/lib/libfreetype.6.dylib to /usr/local/lib.

do this:

ln -s /opt/X11/lib/libfreetype.6.dylib /usr/local/lib/libfreetype.6.dylib

Does freetype comes pre-installed on Mac?

The dynamic linking library comes pre-installed, so you can use any software that requires freetype2 out of the box:

/usr/X11/lib/libfreetype.6.dylib

However, the actual headers and such required to build a freetype2 project do not ship with OS X. To get these, you need to install Xcode; when you install Xcode with any version of the OS X platform SDK, it comes with freetype2:

/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/freetype2/freetype/freetype.h

These days, I think you have to go through the App Store in order to download Xcode, but it is free and that is about all you need to get started developing GL / freetype2 software on OS X. I believe they stopped including Xcode on the OS X install DVDs with the release of 10.6, so registering as an Apple Developer or going through the App Store is probably your only option.


By the way, you are going to have to jump through some hoops when you start using OpenGL on OS X for the first time. It is a little different from most platforms, particularly when it comes to loading (or rather not loading) extensions at run-time. Apple implements the full feature set for OpenGL 2.1 / 3.2 core for all OS X 10.7+ systems even if the underlying GPU does not support it all - it has software fallbacks for anything not supported by hardware.

So you don't have to worry about loading extensions based on the installed GPU capabilities, but you do have to worry about whether using a feature will throw you onto a software path. You also have to put up with longer than average wait time for new versions of OpenGL to be implemented, but this is the price you pay for guaranteed feature set support I suppose.

I would suggest you use something like glfw or SDL2 when starting out, especially if you don't like Objective C (does anyone, honestly?). A lot of newer OpenGL context management these days needs to be done using Objective C (cocoa); Apple is not a big fan of their own C APIs (carbon). glfw and SDL2 hide all this stuff from you so you never have to write a single piece of ugly Objective C code if you do not want :)

ImageMagick and OS X Lion trouble

I also upgraded to Lion and lost ImageMagick, although i'm getting different errors.

i found a Lion distribution on imagemagick.org. not a big fan of the DYLD_LIBRARY_PATH environment variable but it works.

ok scratch that. i just downloaded the ImageMagick source and re-compiled:

cd /tmp
curl -OL ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar -xzf ImageMagick.tar.gz
cd ImageMagick-6.7.2-7/
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts
make
sudo make install

Octave not producing plots in Mac OS X Mountain Lion

This has something to do with the X11 and GNUPLOT, but it can be resolved with the following code in the Terminal:

cd /Applications/Gnuplot.app/Contents/Resources/lib
mv libfreetype.6.dylib libfreetype.6.dylib.bak
ln -s /usr/X11/lib/libfreetype.6.dylib .

It worked for me, hope it works for you as well.

Credits to Slava at http://octave.1599824.n4.nabble.com/Mac-OS-X-Mountain-Lion-Octave-can-not-execute-sombrero-td4643502.html

Rails + Mac OS X: libMagickCore-Q16.7.dylib doesn't work

I have an amazing how-to-install-rmagick that have been working beautifully for me, try to re-install ImageMagick following these steps:

  1. yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel -y (I use CentOS, you can translate the commands to your distro)
  2. Download ImageMagick. Write wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz and press Enter. ImageMagick.tar.gz is created in the current directory.
  3. Unpack the ImageMagick archive. Write tar xczf ImageMagick.tar.gz and press Enter. A new directory, ImageMagick-version, where version is the ImageMagick version number, is created.
  4. Switch to the ImageMagick directory. Write cd ImageMagick-version and press Enter.
  5. Configure the ImageMagick build. Write ./configure --prefix=/usr/local --without-perl and press Enter.
  6. Compile ImageMagick. Write make and press Enter. ImageMagick compiles. This step may take several minutes.
  7. Install ImageMagick to your home directory. Write make install and press Enter.
  8. Remove the installation files. Write rm -r ImageMagick.tar.gz and press Enter.
  9. Add /usr/local/bin to your PATH.
    • Write echo export PATH="/usr/local/bin:$PATH" >> ~/.bash_profile and press Enter.
    • Reload your .bash_profile. Write source ~/.bash_profile and press Enter.
  10. Install the RMagick gem.
    • Write export LD_LIBRARY_PATH=/usr/local/lib and press Enter.
    • Write export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ and press Enter.
    • Install the RMagick gem in your Ruby on Rails application.

Tell me later how it goes.

Imagemagick issue on Lion installed with Homebrew

I ran into the same issue. Running a software update on the operating system resolved it for me. The version of libfree is out of date. Paperclip, ImageMagick and Homebrew were all working fine.



Related Topics



Leave a reply



Submit