{"id":4,"date":"2005-03-25T22:33:53","date_gmt":"2005-03-25T22:33:53","guid":{"rendered":""},"modified":"2017-03-07T16:05:43","modified_gmt":"2017-03-07T16:05:43","slug":"gdb_troubles","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/blubb\/2005\/03\/25\/gdb_troubles\/","title":{"rendered":"gdb troubles"},"content":{"rendered":"<p>Today I nearly went mad while trying to get gdb and ddd working. Every program i wanted to debug just gave me this:<\/p>\n<p><code>(gdb) run<br \/>\nStarting program: \/root\/hello<br \/>\nCannot exec : No such file or directory<\/p>\n<p>Program exited with code 0177.<\/code><\/p>\n<p>After trying several versions, searching on bugs.g.o, asking in multiple irc channels and a lot of swearing i had the flash of genius that I could actually google for this cryptic message&#8230; Perhaps I should change firefox&#8217; homepage back to google instead of my favourite news portal.<\/p>\n<p>Finally, I got gdb working, I just had to <code>export SHELL=\/bin\/bash<\/code> i.e. <code>echo \"SHELL=\/bin\/bash\" >> \/etc\/profile.env<\/code>. Why on earth does gdb need <code>$SHELL?<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I nearly went mad while trying to get gdb and ddd working. Every program i wanted to debug just gave me this: (gdb) run Starting program: \/root\/hello Cannot exec : No such file or directory Program exited with code 0177. After trying several versions, searching on bugs.g.o, asking in multiple irc channels and a &hellip; <a href=\"https:\/\/blogs.gentoo.org\/blubb\/2005\/03\/25\/gdb_troubles\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">gdb troubles<\/span><\/a><\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":1,"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/posts\/4\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/media?parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/categories?post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/blubb\/wp-json\/wp\/v2\/tags?post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}