<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bevan Stanely</title>
    <description>The latest articles on DEV Community by Bevan Stanely (@bevsxyz).</description>
    <link>https://dev.to/bevsxyz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F663702%2F89f52884-19d7-4e8f-be80-12ca4ff8f454.jpg</url>
      <title>DEV Community: Bevan Stanely</title>
      <link>https://dev.to/bevsxyz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bevsxyz"/>
    <language>en</language>
    <item>
      <title>cuda-gdb error with libtinfo.so.5</title>
      <dc:creator>Bevan Stanely</dc:creator>
      <pubDate>Thu, 08 Jul 2021 14:50:33 +0000</pubDate>
      <link>https://dev.to/bevsxyz/cuda-gdb-error-with-libtinfo-so-5-289i</link>
      <guid>https://dev.to/bevsxyz/cuda-gdb-error-with-libtinfo-so-5-289i</guid>
      <description>&lt;p&gt;Originally Published on &lt;a href="https://bevs.xyz/blog/2021/07/cuda-gdb-libtinfo.so.5/"&gt;bevs.xyz&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I had a fresh install of cuda-tools from the Manjaro software repository and I simply couldn’t run &lt;strong&gt;cuda-gdb&lt;/strong&gt;. I was getting the following error&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cuda-gdb: error &lt;span class="k"&gt;while &lt;/span&gt;loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A related error was as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cuda-gdb: error &lt;span class="k"&gt;while &lt;/span&gt;loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I had to investigate the files &lt;code&gt;libtinfo.so.5&lt;/code&gt; and &lt;code&gt;libncursesw.so.5&lt;/code&gt;. It was a simple version-conflict with ncurses. My distro had &lt;strong&gt;ncurses 6.2&lt;/strong&gt;, whereas cuda-gdb was insisting on &lt;strong&gt;ncurses 5&lt;/strong&gt;. A simple symlink was in order, actually two. The following two lines saved my day!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo ln&lt;/span&gt; &lt;span class="nt"&gt;-s&lt;/span&gt; /usr/lib/libncursesw.so.6.2  /usr/lib/libtinfo.so.5

&lt;span class="nb"&gt;sudo ln&lt;/span&gt; &lt;span class="nt"&gt;-s&lt;/span&gt; /usr/lib/libncursesw.so.6.2  /usr/lib/libncursesw.so.5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I got the necessary pointers from this &lt;a href="https://stackoverflow.com/a/42686791/16394350"&gt;stackoverflow answer&lt;/a&gt; for an unrelated Android Studio question.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>cuda</category>
      <category>troubleshooting</category>
      <category>manjaro</category>
    </item>
  </channel>
</rss>
