<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Regarding error when starting g++ in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220160#M91969</link>
    <description>&amp;gt; OS: B.11.11 U 9000/785 2008505106&lt;BR /&gt;&lt;BR /&gt;There is an HP-UX forum, which might work&lt;BR /&gt;better for this question than this Linux&lt;BR /&gt;forum.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/familyhome.do?familyId=117" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/familyhome.do?familyId=117&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have just installed gcc 4.1.1 [...]&lt;BR /&gt;&lt;BR /&gt;From what?  How?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have installed libiconv also.&lt;BR /&gt;&lt;BR /&gt;From what?  How?&lt;BR /&gt;&lt;BR /&gt;Are you using the "g++" which you installed?&lt;BR /&gt;&lt;BR /&gt;If you have a working gcc, you might try&lt;BR /&gt;building a complete GCC kit from source.&lt;BR /&gt;Version 4.3.1 seems to be current.  4.3.0&lt;BR /&gt;worked well for me on a similar system&lt;BR /&gt;(after getting all the (many) prerequisites&lt;BR /&gt;lined up).&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gcc.gnu.org/" target="_blank"&gt;http://gcc.gnu.org/&lt;/A&gt;</description>
    <pubDate>Sun, 22 Jun 2008 12:53:25 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-06-22T12:53:25Z</dc:date>
    <item>
      <title>Regarding error when starting g++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220159#M91968</link>
      <description>Hi All,&lt;BR /&gt;I have just installed gcc 4.1.1 and when i try to execute g++, i am getting this error:&lt;BR /&gt;sh-3.2# g++&lt;BR /&gt;/usr/lib/pa20_64/dld.sl: Unable to find library 'libiconv.sl.4'.&lt;BR /&gt;Killed&lt;BR /&gt;I have installed libiconv also.&lt;BR /&gt;I have the following version of gcc:&lt;BR /&gt;sh-3.2# gcc --v&lt;BR /&gt;Using built-in specs.&lt;BR /&gt;Target: hppa2.0w-hp-hpux11.11&lt;BR /&gt;Configured with: ../src/configure --enable-languages=c,c++ --prefix=/usr/local/pa20_32 --with-local-prefix=/usr/local/pa20_32 --with-gnu-as --with-as=/usr/local/pa20_32/bin/as --with-ld=/usr/ccs/bin/ld --disable-shared --disable-nls&lt;BR /&gt;Thread model: single&lt;BR /&gt;gcc version 4.1.1&lt;BR /&gt;OS: B.11.11 U 9000/785 2008505106&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Jun 2008 07:57:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220159#M91968</guid>
      <dc:creator>vivek1717</dc:creator>
      <dc:date>2008-06-22T07:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding error when starting g++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220160#M91969</link>
      <description>&amp;gt; OS: B.11.11 U 9000/785 2008505106&lt;BR /&gt;&lt;BR /&gt;There is an HP-UX forum, which might work&lt;BR /&gt;better for this question than this Linux&lt;BR /&gt;forum.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/familyhome.do?familyId=117" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/familyhome.do?familyId=117&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have just installed gcc 4.1.1 [...]&lt;BR /&gt;&lt;BR /&gt;From what?  How?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have installed libiconv also.&lt;BR /&gt;&lt;BR /&gt;From what?  How?&lt;BR /&gt;&lt;BR /&gt;Are you using the "g++" which you installed?&lt;BR /&gt;&lt;BR /&gt;If you have a working gcc, you might try&lt;BR /&gt;building a complete GCC kit from source.&lt;BR /&gt;Version 4.3.1 seems to be current.  4.3.0&lt;BR /&gt;worked well for me on a similar system&lt;BR /&gt;(after getting all the (many) prerequisites&lt;BR /&gt;lined up).&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gcc.gnu.org/" target="_blank"&gt;http://gcc.gnu.org/&lt;/A&gt;</description>
      <pubDate>Sun, 22 Jun 2008 12:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220160#M91969</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-06-22T12:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding error when starting g++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220161#M91970</link>
      <description>Welcome to the ITRC Forums!&lt;BR /&gt;&lt;BR /&gt;(Nitpick: this specific part of the forums is for Linux, but the question is about HP-UX. I'll submit a request to move the thread to the appropriate forum section.)&lt;BR /&gt;&lt;BR /&gt;Where did you get your gcc from?&lt;BR /&gt;Did you know that HP offers a pre-packaged GCC for the currently-supported versions of HP-UX? &lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://www.hp.com/go/gcc" target="_blank"&gt;http://www.hp.com/go/gcc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe your libiconv library is not located where g++ expects to find it? Or maybe the g++ requires a _64-bit_ version of the library?&lt;BR /&gt;&lt;BR /&gt;Run "ldd $(which g++)" to see all the libraries required by g++. &lt;BR /&gt;Run "chatr $(which g++)" to find out where the g++ binary expects to find these libraries.&lt;BR /&gt;&lt;BR /&gt;Show us the output of those commands, so that we might be able to help you better.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Sun, 22 Jun 2008 13:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220161#M91970</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-06-22T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding error when starting g++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220162#M91971</link>
      <description>If you have g++ and gcc, you probably have binutils, run ldd on g++:&lt;BR /&gt;"/usr/local/bin/ldd /usr/local/bin/g++"&lt;BR /&gt;&lt;BR /&gt;This tell you what version g++ wants of libiconv. In your example it seems g++ has told the dynamic linker dld that it wants libiconv.sl.4&lt;BR /&gt;&lt;BR /&gt;If you have it installed but maybe in some path dld cant find, (example /usr/local/lib) then try:&lt;BR /&gt;LD_LIBRARY_PATH=/usr/local/lib g++&lt;BR /&gt;&lt;BR /&gt;Also try symlinking your libiconv file to "libiconv.sl.4" in some temporary dir and point LD_LIBRARY_PATH to it like above.</description>
      <pubDate>Mon, 23 Jun 2008 18:18:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/regarding-error-when-starting-g/m-p/4220162#M91971</guid>
      <dc:creator>Larry Liimatainen</dc:creator>
      <dc:date>2008-06-23T18:18:40Z</dc:date>
    </item>
  </channel>
</rss>

