요세미티와 발 그린
요세미티에 valgrind를 설치하는 방법을 알려주시겠습니까? 설치하려고하면 "커널 버전 확인 중 ... 지원되지 않는 (14.0.0) 구성 : 오류 : Valgrind가 Darwin 10.x, 11.x, 12.x 및 13.x (Mac OS X)에서 작동합니다. 10.6 / 7 / 8 / 9) "
공식 경로 나 업데이트가 없으며 아무것도 찾지 못했습니다 ( http://comments.gmane.org/gmane.comp.kde.devel.bugs/1553705 제외 하지만 해당 문제를 해결하지 못했습니다).
Yosemite를 지원하는 안정적인 릴리스가 없으므로 최신 개발 버전을
brew install --HEAD valgrind
과거 OS X 릴리스주기에서 Valgrind가 합리적인 기능 지원을 달성하기까지 오랜 시간이 걸렸을 수도 있지만, 기본 OS X 10.10 지원은 Valgrind 트렁크에서 이미 출시 전 Yosemite에 대한 상당한 작업으로 인해 제공되고 있습니다.
메일 링리스트에서 :
최근 Valgrind의 요세미티 지원 강화를위한 노력이있었습니다. Mac OS에서 개발하는 경우 트렁크 (svn co svn : //svn.valgrind.org/valgrind/trunk)를 사용해보고 파손이 있으면보고하십시오. 하나 이상의 대형 그래픽 응용 프로그램 (Firefox)이 제대로 실행되도록 Yosemite를 충분히 지원합니다. 이전 릴리스 인 10.9 (Mavericks)에 대한 지원도 크게 향상되었습니다.
이 작업은 64 비트 프로세스만을 대상으로합니다. 32 비트가 작동하고 Mavericks에서 더 나아질 수 있지만 Valgrind의 32 비트 x86 명령 세트 지원이 SSSE3을 통과하지 못해 요세미티에서 점점 문제가 될 것으로 생각됩니다.
줄리안 수어드
http://sourceforge.net/p/valgrind/mailman/message/33047840/
전체 공개 : 저는 OS X 10.10을 지원하기 위해 패치를 제공 한 새로운 Valgrind 개발자 중 하나입니다.
Valerio의 svn 워크 플로는 시간과 리소스를 소비하는 모든 지점을 다운로드합니다. 더 좋은 절차는 트렁크 만 다운로드하는 것입니다.
svn co svn://svn.valgrind.org/valgrind/trunk valgrind
cd valgrind
./autogen.sh
./configure
make
make install
여기에 내가 가져 가라. 나는 xcode가 설치된 깨끗한 Mac을 어느 정도 가지고있었습니다. 다음과 같이 컴파일하고 실행했습니다.
# build/install autoconf/automake/libtool so that 'autogen' works
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
tar -xzf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure && make && sudo make install
cd ..
curl -OL http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz
tar -xzf automake-1.14.tar.gz
cd automake-1.14
./configure && make && sudo make install
cd..
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
tar -xzf libtool-2.4.2.tar.gz
cd libtool-2.4.2
./configure && make && sudo make install
cd ..
svn co svn://svn.valgrind.org/valgrind/trunk valgrind
cd valgrind
./autogen.sh
# important: configure-params, otherwise make ends in errors
./configure -disable-tls --enable-only64bit --build=amd64-darwin
make
# sudo, otherwise it fails due to permissions
sudo make install
callgrind_control (valgrind-3.11.0 SVN의)은 OS X에서 작동하지 않는 것으로 보입니다. perl-script처럼 보이고 실행되는 명령 줄 도구 (vgdb -l)는 해당 스크립트가 수행하는 '예기치 않은'것을 인쇄합니다. t 올바르게 구문 분석하십시오 (따라서 valgrind로 실행중인 다른 프로세스를 찾을 수 없습니다).
또는 perl 스크립트는 vgdb 만 호출합니다. 직접 처리 할 수도 있습니다 (프로세스 ID를 수동으로 파악).
vgdb --pid=2858 instrumentation on
10.10.1에서 나를 위해 일했습니다.
svn co svn://svn.valgrind.org/valgrind
cd valgrind
./autogen.sh
./configure
make
make install
All of the solutions listed here failed for me. What finally ended up working was to use mac ports.
sudo port install valgrind-devel
Here's how to install it using alternative sources besides the official svn (because it seems to be intermittently available).
https://crispyappstudiosblog.wordpress.com/2015/07/07/installing-valgrind-on-osx-yosemite/
1) Navigate to this git mirror of the svn and download the latest available version:
http://repo.or.cz/w/valgrind.git
2) You need VEX as well, so grab the latest version here:
http://repo.or.cz/w/vex.git
3) Extract both of them. Put the entire contents of the
VEX
folder into a folder called VEX in the top level of the valgrind directory.
cd
to the valgrind directory, and execute the following:Run ./autogen.sh Run ./configure Run make Run sudo make install
Test it out by running
valgrind --version
You should be running at least 3.11.0 SVN for it work on Yosemite.
I installed it on my mac by installing homebrew
and then running this 3 commands in the terminal.
brew update
brew doctor
brew install --HEAD valgrind
PS: I have Os X El Capitan (10.11) but this should work with previous versions too.
I finally got Valgrind to work on my OSX El Capitan 10.11.12.
User Kalmiya's answer worked for me first after I installed Xcode commandline tools.
Type this in the terminal:
xcode-select --install
Now follow Kalmiya's post, step by step. https://stackoverflow.com/a/30366798/3633475
Here is another take on the svn install. The previous ones did not work for me, since I needed to have automake
and autoconf
installed, which I did not, even though I had the latest version of the Xcode command line tools installed.
I got the following from this site. I also had to link automake
and autoconf
after doing brew install automake
and brew install autoconf
by doing brew link automake
and brew link autoconf
for this to work.
# Check out their repo...
$ svn co svn://svn.valgrind.org/valgrind/trunk valgrind-trunk
# and hop into it.
$ cd valgrind-trunk
# You need to have autoconf and automake installed to build Valgrind
# This example uses Homebrew to install these dependencies
# (MacPorts should also work)
# (Permission error? add sudo!)
$ brew install automake
$ brew install autoconf
# run autogen.sh in valgrind-trunk
$ ./autogen.sh
# Tricky, there are some hard wired paths in the Valgrind sources.
# You need to symlink the mach folder in your XCode SDK to /usr/include/mach
# Be sure to use the proper Xcode SDK "MacOSX10.10.sdk" in the path!
$ ln -sv /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/mach /usr/include/mach
# Run configure + set install paths in valgrind-trunk
$ ./configure --prefix=/usr/local
# Run Make and make install (permission error? add sudo!) in valgrind-trunk
$ make
$ make install
# Check it works
$ valgrind --version
valgrind-3.11.0.SVN
I have used kalmiya's instructions to build valgrind as a conda package for OSX Yosemite. For those who work with anaconda/conda, just do
conda install -c https://conda.binstar.org/groakat valgrind
Side-note: I needed to install the command line tools as described below to get valgrind compiled.
https://stackoverflow.com/a/30471647/2156909
I got valgrind on Yosemite compiled, but had to use a hack to do so. While I think you should be using xcode-select install
to get all command line tools (after which valgrind should make properly), but if you don't want to do this (eg. size of Xcode tools too big), you can also get the Darwin OSX code and copy the following files to /usr/include/mach
mach_vm.defs
task.defs
thread_act.defs
vm_map.defs
This allowed a clean compile and install, although note it is a rather slack hack.
참고URL : https://stackoverflow.com/questions/26564125/yosemite-and-valgrind
'Programming' 카테고리의 다른 글
자바 스크립트는 키 값을 기준으로 배열에서 객체를 찾고 제거합니다. (0) | 2020.07.29 |
---|---|
호스트 네트워크를 시작할 수 없습니다 (0) | 2020.07.29 |
CSS에서 확인란의 테두리 스타일을 변경하는 방법은 무엇입니까? (0) | 2020.07.29 |
PHP에서 루프를 '종료'할 수 있습니까? (0) | 2020.07.29 |
Arel and Rails에서 LIKE 쿼리를 수행하는 방법은 무엇입니까? (0) | 2020.07.29 |