Installation of Valgrind changes permission to usr/local/include/ - macos

I attempted to install valgrind on Mac OS X 10.8.
After completing install any attempt at running gcc gives the following error.
error: /usr/local/include/stdio.h
Of course I could change the permissions on usr/local/include but I'm curious if others have faced this and what the did to correct?
Thanks

Related

How to install libX11-dev on mac os x sierra

I am working on facial landmarks and therefore I have installed dlib on my mac. When I try to execute a program in Xcode from learnopencv.com, the compiler says:
error "DLIB_NO_GUI_SUPPORT is defined so you can't use the GUI code. Turn DLIB_NO_GUI_SUPPORT off if you want to use it."
error "Also make sure you have libx11-dev installed on your system"
I already installed XQuartz. I don't know what to do anymore. Can anyone help me out here?
I suffered from this error for 3 days and finally fixed with:
xcode-select --install

Installing ghc cabal libraries on OSX 10.11 El Capitan, gcc permission denied error

When installing cabal packages on OSX 10.11 El Capitan, I get a permission error even though I am using an administrator account.
cabal: /usr/bin/gcc: permission denied
Changing it with chmod command to +rw or adding my account to root group doesn't fix the permission error. I'm able to run gcc --version just fine.
After much searching and scouring through the interwebs, I stumbled upon a discussion over at Cabal issue tracker. Someone's answer mentioned the rootless feature with El Capitan causing problems.
Here's how to turn off the rootless feature.
Restart your machine. Press cmd+R until you see the apple logo
Open the terminal, by going to Utilities > Terminal
Type in csrutil disable; reboot and hit return
Wait for your osx to reboot itself and then proceed with continuing your cabal installation(s).
Reference:
Cabal Issue #2653 - ar permission errors on OS X 10.11 El Capitan with GHC 7.8.4
Quora - How do I turn off the rootless in OS X El Capitan 10.11?
OSX Daily - How to Disable System Integrity Protection (rootless) in OS X El Capitan

Failed to build pycairo on Mac OS X 10.9

Trying to install py2cairo-1.10.0 on Mac OS X 10.9. Configure went fine, then when I go to run $ ./waf build I get the following:
/usr/local/include/cairo/cairo-xlib.h:44:10: fatal error: 'X11/Xlib.h' file not found
I see from this question that I need to have X11 installed, but since X11 is no longer included with OS X, I can't use that solution. I do have the latest version of XQuartz installed, but that doesn't seem to help anything.
Does anyone know of a workaround for this? Thanks!
UPDATE: Build and install working fine now, but still can't get it to import. Any thoughts?

Set up g++ on OS X

I just updated to OS X Mavericks and it seems it messed up my whole compiler setup. Not only do I have to reinstall a JDK in order to use a Java compiler, I get the following error when I'm trying to compile C/C++ using GCC/G++:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.1/4.7.2/../../../../include/c++/4.7.2/cwchar:46:19: fatal error: wchar.h: No such file or directory
Not sure what to think other than upgrading messed it up. My question is: how do I set up g++ to compile on OS X? If it's already set up, what is the problem here?
If I can provide more information, please let me know.
Note: I've installed gcc 4.7 using homebrew, but it doesn't seem to work. When I use g++-4.7 code.cpp specifically, I get the same error.
Installing the Command Line Tools (OS X Mavericks) for Xcode - Late October 2013 solved it for me. Here is the link:
OSX: Xcode Downloads
The often mentioned xcode-select --install command kept saying it cannot find the requested software.
To clarify: You need to already have gcc-4.7 installed using Homebrew. The update to the latest version of CMD Tools only fixes compatibility issues caused by upgrading from Mountain Lion to Mavericks.

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.

Resources