[{"data":1,"prerenderedAt":432},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2011\u002F08\u002F16\u002Frunning-rvm-ruby-1-9-2-with-rvm-packages-on-osx-lion-failing-to-make-due-to-readline\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":417,"date":418,"description":213,"embedImage":417,"extension":419,"image":417,"intro":417,"meta":420,"navigation":421,"path":422,"seo":423,"series":417,"sitemap":424,"stem":425,"tags":426,"__hash__":431},"content\u002F2011\u002F08\u002F16\u002Frunning-rvm-ruby-1-9-2-with-rvm-packages-on-osx-lion-failing-to-make-due-to-readline.md","Running rvm ruby 1.9.2 with rvm packages on OSX Lion - failing to make due to readline",{"type":208,"value":209,"toc":415},"minimark",[210,214,217,220,257,260,268,271,274,384,387,393,396,402,405,408,411],[211,212,213],"p",{},"Getting rvm rubies to compile with the rvm packages isn't turning out that easy.",[211,215,216],{},"First off - you need to get XCode for Lion installed from the App Store (even if you upgraded from Snow Leopard - Lion needs a newer version). In addition - the App Store downloads an XCode installer - you also have to run it to get it installed ;)",[211,218,219],{},"So I grabbed the latest rvm:",[221,222,227],"pre",{"className":223,"code":224,"language":225,"meta":226,"style":226},"language-shell shiki shiki-themes github-dark","bash \u003C \u003C(curl -s https:\u002F\u002Frvm.beginrescueend.com\u002Finstall\u002Frvm)\n","shell","",[228,229,230],"code",{"__ignoreMap":226},[231,232,235,239,243,247,250,254],"span",{"class":233,"line":234},"line",1,[231,236,238],{"class":237},"svObZ","bash",[231,240,242],{"class":241},"snl16"," \u003C",[231,244,246],{"class":245},"sU2Wk"," \u003C(",[231,248,249],{"class":237},"curl",[231,251,253],{"class":252},"sDLfK"," -s",[231,255,256],{"class":245}," https:\u002F\u002Frvm.beginrescueend.com\u002Finstall\u002Frvm)\n",[211,258,259],{},"This puts up the following message:",[221,261,266],{"className":262,"code":264,"language":265},[263],"language-text","    Notes for Darwin ( Mac OS X )\n        For Lion, Rubies should be built using gcc rather than llvm-gcc. Since\n        \u002Fusr\u002Fbin\u002Fgcc is now linked to \u002Fusr\u002Fbin\u002Fllvm-gcc-4.2, add the following to\n        your shell's start-up file: export CC=gcc-4.2\n        (The situation with LLVM and Ruby may improve. This is as of 07-23-2011.)\n","text",[228,267,264],{"__ignoreMap":226},[211,269,270],{},"I've also read online that it may help with setting ARCHFLAGS - have tested the following with and without this setting - getting the same error.",[211,272,273],{},"So - OK:",[221,275,277],{"className":223,"code":276,"language":225,"meta":226,"style":226},"export ARCHFLAGS=\"-arch x86_64\"\nexport CC=gcc-4.2\nrvm pkg install readline\nrvm pkg install iconv\nrvm pkg install zlib\nrvm install 1.9.2 -C --with-readline-dir=$rvm_path\u002Fusr --with-iconv-dir=$rvm_path\u002Fus --with-zlib-dir=$rvm_path\u002Fusr\n",[228,278,279,294,307,322,334,346],{"__ignoreMap":226},[231,280,281,284,288,291],{"class":233,"line":234},[231,282,283],{"class":241},"export",[231,285,287],{"class":286},"s95oV"," ARCHFLAGS",[231,289,290],{"class":241},"=",[231,292,293],{"class":245},"\"-arch x86_64\"\n",[231,295,297,299,302,304],{"class":233,"line":296},2,[231,298,283],{"class":241},[231,300,301],{"class":286}," CC",[231,303,290],{"class":241},[231,305,306],{"class":286},"gcc-4.2\n",[231,308,310,313,316,319],{"class":233,"line":309},3,[231,311,312],{"class":237},"rvm",[231,314,315],{"class":245}," pkg",[231,317,318],{"class":245}," install",[231,320,321],{"class":245}," readline\n",[231,323,325,327,329,331],{"class":233,"line":324},4,[231,326,312],{"class":237},[231,328,315],{"class":245},[231,330,318],{"class":245},[231,332,333],{"class":245}," iconv\n",[231,335,337,339,341,343],{"class":233,"line":336},5,[231,338,312],{"class":237},[231,340,315],{"class":245},[231,342,318],{"class":245},[231,344,345],{"class":245}," zlib\n",[231,347,349,351,353,356,359,362,365,368,371,373,376,379,381],{"class":233,"line":348},6,[231,350,312],{"class":237},[231,352,318],{"class":245},[231,354,355],{"class":252}," 1.9.2",[231,357,358],{"class":252}," -C",[231,360,361],{"class":252}," --with-readline-dir=",[231,363,364],{"class":286},"$rvm_path",[231,366,367],{"class":252},"\u002Fusr",[231,369,370],{"class":252}," --with-iconv-dir=",[231,372,364],{"class":286},[231,374,375],{"class":252},"\u002Fus",[231,377,378],{"class":252}," --with-zlib-dir=",[231,380,364],{"class":286},[231,382,383],{"class":252},"\u002Fusr\n",[211,385,386],{},"It gets as far as compiling ruby. Then it throws an error:",[221,388,391],{"className":389,"code":390,"language":265},[263],"    ruby-1.9.2-p290 - #configuring\n    ruby-1.9.2-p290 - #compiling\n    ERROR: Error running 'make ', please read \u002FUsers\u002Fchris\u002F.rvm\u002Flog\u002Fruby-1.9.2-p290\u002Fmake.log\n",[228,392,390],{"__ignoreMap":226},[211,394,395],{},"And the make error is:",[221,397,400],{"className":398,"code":399,"language":265},[263],"    readline.c: In function ‘username_completion_proc_call’:\n    readline.c:1386: error: ‘username_completion_function’ undeclared (first use in this function)\n",[228,401,399],{"__ignoreMap":226},[211,403,404],{},"Googling is showing people with the same issue - but the only fixes I've seen so far are the ARCHFLAGS and CC exports - and they're not helping :(",[211,406,407],{},"The issue seems to be very related to readline.",[211,409,410],{},"Will update if I find out about this - but if you have a suggestion - please comment with it.",[412,413,414],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}",{"title":226,"searchDepth":296,"depth":296,"links":416},[],null,"2011-08-16 10:05:44 +0200","md",{},true,"\u002F2011\u002F08\u002F16\u002Frunning-rvm-ruby-1-9-2-with-rvm-packages-on-osx-lion-failing-to-make-due-to-readline",{"title":206,"description":213},{"loc":422},"2011\u002F08\u002F16\u002Frunning-rvm-ruby-1-9-2-with-rvm-packages-on-osx-lion-failing-to-make-due-to-readline",[427,428,312,429,430],"mac","ruby","lion","readline","5v3m49UdoMsPhpketuYZJ-SA02Hv_M5xEb9lL2kMmJE",1775293013642]