I want to remove valgrind completely from my system. I deleted the valgrind-trunk folder that was created when I installed valgrind with brew. When I run valgrind, I get
valgrind: Unknown/uninstalled VG_PLATFORM 'amd64-darwin'
When I run brew uninstall valgrind, I get
Error: No such keg: /usr/local/Cellar/valgrind
I am on El Capitan. How can I remove valgrind from my system?
Related
I was running through an npm tutorial and I needed to install Homebrew. However, after getting one error (cannot install node using available compilers), I ran brew install gcc. Well, that took forever, but it ultimately didn't work because apparently I have either MacPorts or Fink installed.
To be honest, I am not sure when I installed either MacPorts or Fink. I don't remember hearing them before or using them, and I'm not sure what they're used for. Has anyone run into this error before, or have any advice on what to do next? Below are the errors and the links I got in terminal. Thanks!
make[2]: *** [configure-stage2-target-libstdc++-v3] Error 1
make[1]: *** [stage2-bubble] Error 2
make: *** [bootstrap] Error 2
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
READ THIS: https://git.io/brew-troubleshooting
These open issues may also help:
`gcc`: Force DWARF-2 Debugging Data under Pre-Mavericks https://github.com/Homebrew/homebrew/pull/46111
freeimage: patches for gcc 5.0 https://github.com/Homebrew/homebrew/pull/44612
yap: don't use GCC 5, which breaks https://github.com/Homebrew/homebrew/pull/45977
gcc can't find compatible ISL https://github.com/Homebrew/homebrew/issues/44444
How Do I Specify and Use Homebrew gcc-4.8 in a Formula Instead of OS X Bundled gcc? https://github.com/Homebrew/homebrew/issues/46169
isl 0.15, cloog 0.18.4, gcc compatibility patch https://github.com/Homebrew/homebrew/pull/44486
gcc causes false alarms in C++ stdlib check https://github.com/Homebrew/homebrew/issues/45218
apple-gcc42 takes priority over modern gcc https://github.com/Homebrew/homebrew/issues/41055
gcc 4.9.2 fails to produce debugging information https://github.com/Homebrew/homebrew/issues/34976
Object files deleted during build of gcc needed by gdb https://github.com/Homebrew/homebrew/issues/35734
MacOS.(gcc|clang|llvm)_version can return nil https://github.com/Homebrew/homebrew/issues/18781
MacPorts and Fink are package managers for OS X, like Homebrew. As the message says Homebrew doesn’t work well with these two, so you should either stay with MacPorts or Fink, or uninstall them and use Homebrew.
Outside of that, you can check Homebrew’s troubleshooting guide to learn how to fix common issues.
I do as stated in the documentation
git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
But I get error
/private/tmp/cphalcon/build/64bits/phalcon.c:108409:10: fatal error:
'libintl.h' file not found
include <libintl.h>
You seem to be trying to use the Linux/Solaris build instructions, which may not work on a BSD-based OS such as OS X.
According to this page you should use Homebrew or MacPorts to build/install phalcon on OS X:
sudo brew install php55-phalcon
Running
open Graphics;;
in OCaml returns an error, saying it is an unbound module. Running it in terminal (ocaml) returns the same thing.
Does this mean my Graphics Module was somehow not installed with the OCaml package? If so, how can I install the module?
On Fedora.
This error also appears often on Mac OS X. With Homebrew this module is disabled by default on installation, so brew install ocaml will not install the Graphics module, probably due to the XQuartz dependency.
If you run brew info ocaml, it will tell you that there's a flag, namely --with-x11, that will "Install with the Graphics module". So to install/reinstall ocaml you'll have to run:
brew install Caskroom/cask/xquartz
brew [re]install ocaml --with-x11
Finally remember to check that the instance of ocaml that is running is the one in /usr/local/Cellar/objective-caml/x.yy.z[_w]/bin, and if it isn't then prepend that url to your PATH environment variable. Also remember to restart your computer after the XQuartz installation.
Graphics module is not ready by default. You need to load it manually. In toplevel:
$ ocaml
OCaml version blahblah
# #load "graphics.cma";;
# open Graphics;;
or you can specify it at the command line:
$ ocaml graphics.cma
OCaml version blahblah
# open Graphics;;
I do not know about Fedora but if the above fails, graphics is not really installed in your environment.
I downloaded Valgrind 3.7.0 and ran:
./configure
make
make install
However when I run valgrind --version, I get 3.5.0. How is this possible? I am running Mac OS X Lion 10.7. I know I downloaded 3.7.0 because the tar file I downloaded from Valgrind's website name isvalgrind-3.7.0.
What other ways can I check for the version?
By default, valgrind binaries should get installed in /usr/local/bin when you compile from source without providing a --prefix.
(You really just did ./configure && make && make install and had the permissions to install, right?)
See if /usr/local/bin/valgrind exists.
Execute /usr/local/bin/valgrind --version. What is the version?
Execute which valgrind. This should tell you where the valgrind binary is being picked from. Is it the same? My guess is, it is probably not.
Execute echo $PATH to see your path. This gives a : delimited list of directories where bash searches for executables, in the order in which the directories are listed.
My guess is:
There is an existing valgrind installation of the old version, and it shows up in a directory that appears earlier in your $PATH than /usr/local/bin.
I'm trying to test installing my app and am having some issues. I built a .pkg using terminals productbuild command. Then I tried testing the installation using sudo installer on the .pkg I made with product build. When I try to run the sudo installer I get a message in terminal stating "theApp can't be installed on this computer". Any ideas why this could happen?
EDIT: Figured it out. Turns out there is a special installer command for running app store packages. For anyone who needs it the command is
sudo installer -store -pkg /Users/MyApp/ -target /DirectoryToInstallTo