vim の c++ 補完 on debian(個人メモ)

Debian で c++ の開発環境を整えるにあたって、少しトラブったのでメモ。

開発環境というか関数の補完機能を付けたかったわけだが、ちょっとググった範囲では、justmao945/vim-clangRip-Rip/clang_complete が有名 & 良さそう感じ。

ちょっと使った感じの違いとしては、vim-clang は速くてサクサク動く。
対して、clang_complete はちょっとモッサリしているが関数の戻り値や引数の型まで教えてくれる。
(clang_complete は boost を使うと挙動の遅さが少し気になるレベル。)

ただ、問題は両者とも gcc ではなく clang を前提としている事。
なので、mac では neobundle で vim のパッケージ入れるだけで OK だったが、debian では若干手こずる。

clang_complete だが、vim のプラグインと clang をインストールしただけでは動かなかった。
(vim のプラグインを入れた後、$ sudo apt-get install clang)
一応、debian sid, debian jessied で試したが、共に動かず

でも、「ubuntu で動かした」という記事が多く見られる。
試しに trusty (ubuntu 14.04) で、同じ方法でやってみる。
すると、問題無く動く。

そんなバナナ!

trusty、jessie ともに debian sid を freeze、ちょっとモゴモゴして作ったもの。
リリース時期は 2014年4月。
ほとんど変わらないはず。
canonical め、何をモゴモゴしたんだ!

まあ、どうせ library のパスか何かだろうなと思ってよく見ると、
上手く動かない debian では libclang が見つからないから g:clang_library_path をセットしろというメッセージが出ていうるではないか!
Rip-Rip さん、ちゃんとサニタイズ & エラーメッセージしてくれて、ありがとうございました。
対して俺は失格ですね。
エラーメッセージくらい、最初に見ろと。

まあ、結論から言うと
let g:clang_library_path = ‘/usr/lib/llvm-3.6/lib/libclang.so
とやったら、ちゃんと動いてくれた。
まあ llvm のバージョンは頻繁に変わると思うので注意。

vim-clang?
知らね。
個人的には clang_complete の方が気に入ったし、解決するの面倒。

一応、自分メモとして残しておく。

Author: wbcchsyn

未来のスーパーエンジニア とりあえず、新しい物が大好き

106 thoughts on “vim の c++ 補完 on debian(個人メモ)”

  1. I just want to mention I am just all new to blogging and actually liked this page. Very likely I’m planning to bookmark your website . You actually have wonderful articles and reviews. Thanks a bunch for sharing with us your website.

  2. Hello there, just became alert to your blog through Google, and found that it’s really informative. I’m going to watch out for brussels. I will appreciate if you continue this in future. Numerous people will be benefited from your writing. Cheers!

  3. Good blog! I really love how it is easy on my eyes and the data are well written. I’m wondering how I could be notified when a new post has been made. I have subscribed to your RSS feed which must do the trick! Have a great day!

  4. I wish to show appreciation to you just for bailing me out of such a condition. Just after browsing throughout the online world and meeting proposals that were not pleasant, I believed my life was done. Living without the solutions to the problems you’ve solved all through your main review is a critical case, as well as ones which might have in a wrong way affected my entire career if I hadn’t come across your web blog. Your main ability and kindness in maneuvering a lot of stuff was vital. I’m not sure what I would have done if I hadn’t come upon such a solution like this. I can now look ahead to my future. Thank you very much for your specialized and sensible guide. I won’t hesitate to endorse the sites to anyone who needs to have support about this area.

  5. I keep listening to the news update talk about getting boundless online grant applications so I have been looking around for the top site to get one. Could you advise me please, where could i get some?

  6. May I simply just say what a comfort to uncover somebody that actually knows what they are talking about over the internet. You definitely know how to bring a problem to light and make it important. More and more people should look at this and understand this side of the story. I can’t believe you aren’t more popular since you definitely possess the gift.

  7. I and also my pals happened to be reading through the excellent key points on the blog and all of a sudden came up with a horrible feeling I had not thanked the site owner for those techniques. Most of the people came for this reason glad to see all of them and have now quite simply been taking pleasure in those things. I appreciate you for actually being quite accommodating as well as for settling on varieties of terrific subject areas millions of individuals are really wanting to know about. My personal honest apologies for not expressing appreciation to you sooner.

  8. Excellent read, I just passed this onto a friend who was doing some research on that. And he actually bought me lunch as I found it for him smile Therefore let me rephrase that: Thanks for lunch!

  9. I have not checked in here for some time as I thought it was getting boring, but the last several posts are great quality so I guess I will add you back to my everyday bloglist. You deserve it my friend 🙂

  10. Thanks for the sensible critique. Me and my neighbor were just preparing to do a little research about this. We got a grab a book from our area library but I think I learned more clear from this post. I am very glad to see such excellent information being shared freely out there.

  11. you’re truly a excellent webmaster. The site loading velocity is incredible. It sort of feels that you’re doing any distinctive trick. Moreover, The contents are masterwork. you have performed a excellent task in this matter!

  12. I’ve recently started a website, the info you offer on this site has helped me tremendously. Thanks for all of your time & work. “Never trust anybody who says ‘trust me.’ Except just this once, of course. – from Steel Beach” by John Varley.

  13. It is really a nice and helpful piece of info. I’m happy that you simply shared this helpful info with us. Please stay us informed like this. Thanks for sharing.

  14. you’re in reality a just right webmaster. The website loading speed is incredible. It seems that you’re doing any distinctive trick. Moreover, The contents are masterpiece. you’ve done a great process on this matter!

  15. Good day very nice site!! Guy .. Excellent .. Amazing .. I’ll bookmark your blog and take the feeds additionally…I’m satisfied to find so many useful info here within the submit, we’d like work out extra strategies in this regard, thank you for sharing.

  16. I wanted to post you this little word to finally say thanks a lot over again just for the pleasing methods you have shared above. It was really particularly open-handed of people like you to present extensively all a lot of people might have supplied for an electronic book to help with making some cash for themselves, mostly considering the fact that you could possibly have done it if you considered necessary. The inspiring ideas additionally worked as a easy way to fully grasp that most people have similar keenness the same as my very own to see significantly more concerning this issue. I believe there are millions of more fun instances ahead for people who browse through your blog.

  17. F*ckin’ remarkable things here. I am very happy to peer your article. Thank you so much and i am looking ahead to touch you. Will you please drop me a e-mail?

  18. Hello, Neat post. There is an issue with your website in web explorer, might test this… IE nonetheless is the marketplace chief and a large component to other people will omit your great writing because of this problem.

  19. Hello very nice blog!! Guy .. Beautiful .. Superb .. I’ll bookmark your web site and take the feeds also…I’m happy to search out so many useful information here within the post, we want work out more strategies in this regard, thank you for sharing.

  20. I needed to put you one little bit of observation in order to say thanks the moment again relating to the pleasing opinions you have shown at this time. It was certainly particularly open-handed with you in giving without restraint just what some people would have sold for an e-book to get some bucks for themselves, specifically now that you might well have done it in case you decided. These points as well served like a good way to know that some people have a similar dreams the same as mine to learn whole lot more in regard to this matter. I’m sure there are millions of more enjoyable instances in the future for folks who browse through your site.

  21. I do trust all of the ideas you have presented on your post. They are very convincing and will certainly work. Nonetheless, the posts are too brief for starters. May just you please lengthen them a little from subsequent time? Thanks for the post.

  22. I like this post, enjoyed this one thanks for posting. “What is a thousand years Time is short for one who thinks, endless for one who yearns.” by Alain.

  23. I like what you guys are up also. Such smart work and reporting! Keep up the excellent works guys I’ve incorporated you guys to my blogroll. I think it’ll improve the value of my site :).

  24. You can certainly see your enthusiasm within the paintings you write. The arena hopes for even more passionate writers like you who are not afraid to mention how they believe. At all times go after your heart. “Faith in the ability of a leader is of slight service unless it be united with faith in his justice.” by George Goethals.

  25. Some truly superb information, Gladiolus I detected this. “Leaders must encourage their organizations to dance to forms of music yet to be heard.” by Warren Bennis.

  26. You have noted very interesting details ! ps nice web site . “We make ourselves a ladder out of our vices if we trample the vices themselves underfoot.” by Saint Augustine.

  27. Just a smiling visitor here to share the love (:, btw great design. “Better by far you should forget and smile than that you should remember and be sad.” by Christina Georgina Rossetti.

  28. wonderful issues altogether, you simply gained a logo new reader. What may you recommend about your publish that you just made some days in the past? Any certain?

  29. Thanks for sharing excellent informations. Your web-site is so cool. I am impressed by the details that you’ve on this blog. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my pal, ROCK! I found simply the info I already searched everywhere and just couldn’t come across. What an ideal website.

  30. I genuinely enjoy studying on this website , it holds wonderful content . “Do what you fear, and the death of fear is certain.” by Anthony Robbins.

  31. You can certainly see your expertise within the paintings you write. The sector hopes for even more passionate writers such as you who aren’t afraid to say how they believe. All the time follow your heart. “Every man serves a useful purpose A miser, for example, makes a wonderful ancestor.” by Laurence J. Peter.

  32. Great web site. Plenty of helpful information here. I am sending it to a few pals ans additionally sharing in delicious. And naturally, thank you in your sweat!

  33. I have recently started a site, the information you provide on this site has helped me greatly. Thank you for all of your time & work. “Marriage love, honor, and negotiate.” by Joe Moore.

  34. Somebody essentially assist to make severely articles I would state. That is the first time I frequented your website page and so far? I surprised with the research you made to make this actual post incredible. Fantastic task!

  35. I am not sure where you’re getting your info, but good topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic info I was looking for this info for my mission.

  36. hi!,I really like your writing so much! share we keep up a correspondence more approximately your article on AOL? I require an expert on this house to resolve my problem. May be that’s you! Having a look ahead to peer you.

  37. Some really fantastic articles on this site, thanks for contribution. “I finally know what distinguishes man from other beasts financial worries. – Journals” by Jules Renard.

  38. I haven¡¦t checked in here for some time since I thought it was getting boring, but the last several posts are great quality so I guess I will add you back to my everyday bloglist. You deserve it my friend 🙂

  39. I’m also writing to let you understand of the really good discovery our girl developed going through your blog. She noticed such a lot of pieces, which include how it is like to possess an incredible coaching nature to let the mediocre ones without problems know precisely specified complicated subject matter. You actually surpassed her expectations. Many thanks for offering the practical, healthy, informative and even easy thoughts on the topic to Tanya.

  40. Great – I should definitely pronounce, impressed with your site. I had no trouble navigating through all the tabs as well as related information ended up being truly easy to do to access. I recently found what I hoped for before you know it at all. Reasonably unusual. Is likely to appreciate it for those who add forums or anything, web site theme . a tones way for your client to communicate. Excellent task.

  41. Someone essentially lend a hand to make critically articles I would state. This is the very first time I frequented your web page and up to now? I amazed with the analysis you made to create this actual submit extraordinary. Fantastic process!

  42. Thank you, I’ve recently been looking for information approximately this topic for a long time and yours is the best I’ve discovered till now. However, what in regards to the bottom line? Are you certain concerning the source?

  43. Hey There. I found your blog using msn. This is a really well written article. I’ll make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will certainly return.

  44. Attractive section of content. I just stumbled upon your site and in accession capital to assert that I acquire actually enjoyed account your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently rapidly.

  45. I’ll immediately grab your rss as I can’t to find your email subscription link or newsletter service. Do you have any? Kindly permit me know so that I could subscribe. Thanks.

  46. I got what you intend, appreciate it for putting up.Woh I am lucky to find this website through google. “I was walking down the street wearing glasses when the prescription ran out.” by Steven Wright.

  47. I really like your writing style, wonderful info, regards for posting :D. “Let every man mind his own business.” by Miguel de Cervantes.

  48. Just desire to say your article is as astonishing. The clearness in your post is just cool and i could assume you’re an expert on this subject. Fine with your permission allow me to grab your feed to keep updated with forthcoming post. Thanks a million and please continue the rewarding work.

  49. I got what you intend, thankyou for posting .Woh I am delighted to find this website through google. “I would rather be a coward than brave because people hurt you when you are brave.” by E. M. Forster.

  50. I do trust all of the ideas you have presented to your post. They’re very convincing and will definitely work. Nonetheless, the posts are very quick for novices. May you please extend them a bit from subsequent time? Thank you for the post.

  51. This is really interesting, You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your wonderful post. Also, I have shared your web site in my social networks!

  52. I think this site contains some very great information for everyone :D. “Laughter is the sun that drives winter from the human face.” by Victor Hugo.

  53. I genuinely enjoy looking at on this internet site , it holds fantastic articles . “One doesn’t discover new lands without consenting to lose sight of the shore for a very long time.” by Andre Gide.

  54. I’ve recently started a blog, the info you provide on this web site has helped me greatly. Thank you for all of your time & work. “Never trust anybody who says ‘trust me.’ Except just this once, of course. – from Steel Beach” by John Varley.

  55. What i don’t realize is if truth be told how you’re now not really a lot more well-preferred than you might be right now. You are so intelligent. You understand therefore significantly on the subject of this topic, produced me for my part imagine it from a lot of various angles. Its like men and women aren’t fascinated until it is something to accomplish with Woman gaga! Your own stuffs great. At all times maintain it up!

  56. Thank you for sharing excellent informations. Your site is so cool. I’m impressed by the details that you’ve on this web site. It reveals how nicely you understand this subject. Bookmarked this website page, will come back for more articles. You, my friend, ROCK! I found simply the information I already searched all over the place and simply could not come across. What a perfect site.

  57. I do consider all the concepts you have presented for your post. They’re very convincing and can certainly work. Nonetheless, the posts are too quick for starters. May you please prolong them a bit from subsequent time? Thanks for the post.

  58. Heya i am for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and aid others like you helped me.

  59. Enjoyed looking at this, very good stuff, thankyou . “Golf isn’t a game, it’s a choice that one makes with one’s life.” by Charles Rosin.

  60. My spouse and i ended up being absolutely satisfied Albert managed to deal with his inquiry with the precious recommendations he was given using your blog. It’s not at all simplistic to just find yourself giving for free secrets which usually many people may have been trying to sell. We really figure out we’ve got the website owner to give thanks to for that. Those illustrations you’ve made, the straightforward site navigation, the relationships your site give support to engender – it is most remarkable, and it’s assisting our son in addition to our family recognize that the concept is enjoyable, which is certainly particularly serious. Thank you for all the pieces!

  61. Unquestionably believe that which you stated. Your favorite reason appeared to be on the net the easiest thing to be aware of. I say to you, I certainly get annoyed while people think about worries that they just do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks

  62. I’ll right away grasp your rss as I can’t find your email subscription link or newsletter service. Do you’ve any? Kindly let me understand so that I may subscribe. Thanks.

  63. Somebody essentially lend a hand to make significantly posts I might state. That is the first time I frequented your website page and thus far? I surprised with the research you made to create this particular post amazing. Magnificent task!

  64. You can definitely see your skills within the paintings you write. The world hopes for more passionate writers like you who aren’t afraid to mention how they believe. At all times go after your heart. “History is the version of past events that people have decided to agree upon.” by Napoleon.

  65. Thank you, I have just been looking for information about this subject for a while and yours is the best I’ve found out so far. However, what about the bottom line? Are you certain in regards to the supply?

  66. certainly like your website but you need to take a look at the spelling on several of your posts. Several of them are rife with spelling problems and I to find it very troublesome to inform the reality nevertheless I’ll certainly come again again.

  67. I think this is one of the most vital information for me. And i’m glad reading your article. But wanna remark on some general things, The site style is ideal, the articles is really excellent : D. Good job, cheers

  68. Thank you for another informative blog. Where else may I am getting that type of info written in such a perfect approach? I’ve a project that I am just now running on, and I have been at the look out for such info.

  69. I wish to express my appreciation for your kind-heartedness supporting men who need assistance with this one question. Your special dedication to passing the message throughout has been rather functional and has always allowed people just like me to achieve their pursuits. Your personal informative suggestions can mean this much to me and somewhat more to my colleagues. Regards; from all of us.
    [url=http://www.michaelkors-outletstore.us.com/michael-kors-jaryn-large-apricot-totes-p-1544.html]Michael Kors Jaryn Large Apricot Totes[/url]

Leave a Reply

リンクの無いコメントは即時反映されます