{"id":875,"date":"2015-06-06T03:22:44","date_gmt":"2015-06-06T12:22:44","guid":{"rendered":"http:\/\/blog.box.kr\/?p=875"},"modified":"2015-06-06T03:22:44","modified_gmt":"2015-06-06T12:22:44","slug":"install-gdb-on-osx-yosemite","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=875","title":{"rendered":"Install GDB on OSX Yosemite"},"content":{"rendered":"<p>First things first &#8211; you need to install brew. It&#8217;s a homebrew package installer that can be found <a href=\"http:\/\/brew.sh\/\">here<\/a>. Then in your terminal, run<\/p>\n<blockquote>\n<div class=\"code\">brew install gdb\n<\/div>\n<\/blockquote>\n<p>This will install the latest gdb.<\/p>\n<p>but, if you are show error like this &#8220;Error: No available formula for gdb&#8221;c<\/p>\n<p>Homebrew does not provide gcc and the associated development tool formulas over concerns that custom\/non-system compilers could break builds. Two possibilities for easiness:<\/p>\n<ul>\n<li>Use <a href=\"http:\/\/www.macports.org\/\">http:\/\/www.macports.org\/<\/a><\/li>\n<li>Look here <a href=\"https:\/\/github.com\/mxcl\/homebrew\/wiki\/Custom-GCC-and-cross-compilers\">https:\/\/github.com\/mxcl\/homebrew\/wiki\/Custom-GCC-and-cross-compilers<\/a><\/li>\n<\/ul>\n<p>This is probably the command for you:<\/p>\n<blockquote>\n<pre><code>brew install https:\/\/raw.github.com\/Homebrew\/homebrew-dupes\/master\/gdb.rb\n<\/code><\/pre>\n<\/blockquote>\n<p>Now, gdb is installed!<\/p>\n<p>&nbsp;<\/p>\n<p>Or so it seems! The thing is that now you need to codesign your gdb installation. So go to Applications -&gt; Utilities -&gt; Keychain Access. In the menu up top go to Keychain Access -&gt; Certificate Assistant -&gt; Create a Certificate&#8230;. In the name just put gdb-cert, identity as self-signed root, and certificate type as Code Signing. Also tick the &#8220;override defaults&#8221; button.<\/p>\n<div class=\"image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/patosai.com\/img\/blog\/2015\/03\/24\/cert.png?w=623\" alt=\"\" data-recalc-dims=\"1\" \/>\n<\/div>\n<p>Now you can choose how many days before the certificate expires. For simplicity&#8217;s sake, I just put 6666 days since I don&#8217;t ever want to do this again.<\/p>\n<p>Now just keep clicking continue (like 6-7 clicks) until you get to &#8220;Specify a Location for the Certificate.&#8221; Make sure it&#8217;s on the System keychain!<\/p>\n<p>Now when that wraps up, go to your Keychain Assistant once more. On the left menu go to your System keychain, right click on your gdb-cert and click Get Info. In the window that pops up there should be a menu called Trust. Just set it to always trust.<\/p>\n<div class=\"image\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/patosai.com\/img\/blog\/2015\/03\/24\/trust.png?w=623\" alt=\"\" data-recalc-dims=\"1\" \/>\n<\/div>\n<p>Finally we can sign GDB!<\/p>\n<div class=\"code\">codesign -s gdb-cert [your-gdb-location]\n<\/div>\n<p>I symlinked my gdb into my bin directory (\/usr\/local\/bin\/gdb) so I can access it from the terminal easily.<\/p>\n<p>Now if you run gdb, you should get no more problems with gdb not being codesigned or what not.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First things first &#8211; you need to install brew. It&#8217;s a homebrew package installer that can be found here. Then in your terminal, run brew install gdb This will install the latest gdb. but, if you are show error like this &#8220;Error: No available formula for gdb&#8221;c Homebrew does not provide gcc and the associated development tool formulas over concerns that custom\/non-system compilers could break builds. Two possibilities for easiness: Use http:\/\/www.macports.org\/ Look here https:\/\/github.com\/mxcl\/homebrew\/wiki\/Custom-GCC-and-cross-compilers This is probably the command for you: brew install https:\/\/raw.github.com\/Homebrew\/homebrew-dupes\/master\/gdb.rb Now, gdb is installed! &nbsp; Or so it seems! The thing is that now you need to codesign your gdb installation. So go to Applications -&gt; Utilities -&gt; Keychain Access. In the menu up top go to Keychain Access -&gt; Certificate Assistant -&gt; Create a Certificate&#8230;. In the name just put gdb-cert, identity as self-signed root, and certificate type as Code Signing. Also tick the &#8220;override defaults&#8221; button. Now you can choose how many days before the certificate expires. For simplicity&#8217;s sake, I just put 6666 days since I don&#8217;t ever want to do this again. Now just keep clicking continue (like 6-7 clicks) until you get to &#8220;Specify a Location for the Certificate.&#8221; Make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-e7","jetpack-related-posts":[{"id":899,"url":"https:\/\/blog.box.kr\/?p=899","url_meta":{"origin":875,"position":0},"title":"Cassandra cpp driver install","date":"2015-06-16","format":false,"excerpt":"http:\/\/datastax.github.io\/cpp-driver\/topics\/building\/ \u00a0 Building Supported Platforms The driver is known to work on CentOS\/RHEL 5\/6\/7, Mac OS X 10.8\/10.9 (Mavericks and Yosemite), Ubuntu 12.04\/14.04 LTS, and Windows 7 SP1. It has been built using GCC 4.1.2+, Clang 3.4+, and MSVC 2010\/2012\/2013. Dependencies Driver CMake libuv (1.x or 0.10.x) OpenSSL (optional) NOTE:\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1181,"url":"https:\/\/blog.box.kr\/?p=1181","url_meta":{"origin":875,"position":1},"title":"C++ Development using Visual Studio Code, CMake and LLDB","date":"2017-04-14","format":false,"excerpt":"this article are captured as \"https:\/\/medium.com\/audelabs\/c-development-using-visual-studio-code-cmake-and-lldb-d0f13d38c563\" \u00a0 I\u2019ve been working for almost a year implementing micro-services on C++11 running as Docker containers. Through my journey I\u2019ve seen to emerge quite a bunch of interesting tools to work with C++ on this field (micro-services and Docker). I started using Xcode on\u2026","rel":"","context":"In &quot;VSC&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":421,"url":"https:\/\/blog.box.kr\/?p=421","url_meta":{"origin":875,"position":2},"title":"Error &#039;LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt&#039; after installing Visual Studio 2012 Release Preview","date":"2014-11-28","format":false,"excerpt":"This MSDN thread explains how to fix it. To summarize: Either disable incremental linking, by going to Project Properties -> Configuration Properties -> Linker (General) -> Enable Incremental Linking -> \"No (\/INCREMENTAL:NO)\" or install VS2010 SP1. Edits (@CraigRinger): Note that installing VS 2010 SP1 will remove the 64-bit compilers. You\u2026","rel":"","context":"In &quot;C\/C++&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":867,"url":"https:\/\/blog.box.kr\/?p=867","url_meta":{"origin":875,"position":3},"title":"FIX8 lib. install on OSX","date":"2015-06-02","format":false,"excerpt":"1. open source download http:\/\/fix8.org\/downloads.html 2. un tar 3. brew install automake 4. brew install poco 5. configure --with-poco=\/usr\/local\/opt\/poco 6. make 7. but... error In file included from xml.cpp:38: In file included from ..\/include\/fix8\/f8includes.hpp:84: ..\/include\/fix8\/tickval.hpp:67:34: error: in-class initializer for static data member is not a constant expression static const ticks\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":879,"url":"https:\/\/blog.box.kr\/?p=879","url_meta":{"origin":875,"position":4},"title":"ZeroMQ install on osx","date":"2015-06-06","format":false,"excerpt":"ZeroMQ :\u00a0http:\/\/zeromq.org\/docs:source-git git clone git:\/\/github.com\/zeromq\/libzmq.git cd libzmq .\/autogen.sh .\/configure # add other options here make make check sudo make install or brew install zeromq","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":864,"url":"https:\/\/blog.box.kr\/?p=864","url_meta":{"origin":875,"position":5},"title":"How to Install Git 2.4.2 on CentOS\/Redhat 7,6,5 and Fedora 20\/19","date":"2015-05-27","format":false,"excerpt":"http:\/\/tecadmin.net\/install-git-2-0-on-centos-rhel-fedora\/ Git has released 2.4.2\u00a0version on May 26, 2015.It has lots of noticeable changes over git 1.9 release. Git is a free and open source distributed version control system . It is designed to handle a small to very large projects with speed and efficiency. To know more about read\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/875"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=875"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/875\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}