<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:01:01 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-990] Can&apos;t install the C++ driver</title>
                <link>https://jira.mongodb.org/browse/CXX-990</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;I have installed libbson and C mongodb driver. I then tried to install the C++ new driver which gave me this error:&lt;/p&gt;

&lt;p&gt;```&lt;br/&gt;
CMake Error at /home/cortana/Desktop/mongo-cxx-driver-master/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install-Release.cmake:16 (message):&lt;br/&gt;
  Command failed: 2&lt;/p&gt;

&lt;p&gt;   &apos;make&apos; &apos;install&apos;&lt;/p&gt;

&lt;p&gt;  See also&lt;/p&gt;

&lt;p&gt;    /home/cortana/Desktop/mongo-cxx-driver-master/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install-*.log&lt;/p&gt;


&lt;p&gt;make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;src/bsoncxx/third_party/CMakeFiles/EP_mnmlstc_core.dir/all&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;all&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
```&lt;br/&gt;
How do I remove this error and install the driver?&lt;/p&gt;</description>
                <environment>Ubuntu 14.04 &lt;br/&gt;
GCC 4.8.5</environment>
        <key id="308176">CXX-990</key>
            <summary>Can&apos;t install the C++ driver</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kneelb4darth">kapil gupta</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Aug 2016 03:42:33 +0000</created>
                <updated>Wed, 11 Sep 2019 19:06:27 +0000</updated>
                            <resolved>Thu, 11 Aug 2016 16:51:28 +0000</resolved>
                                    <version>3.0.1</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1354357" author="acm" created="Thu, 11 Aug 2016 16:51:22 +0000"  >&lt;p&gt;Unfortunately, pkg-config just doesn&apos;t seem to want you to be able to set rpath via the pkg-config system, or I would recommend that. I&apos;m not sure if using the CMake modules we ship would solve the problem either, but it might. In any event, in the real world you will be building against the C++11 library with a build system of some sort, which can automate this for you.&lt;/p&gt;

&lt;p&gt;I&apos;m going to close this ticket as &apos;works as designed&apos; because I don&apos;t think there are any changes to make here.&lt;/p&gt;</comment>
                            <comment id="1354332" author="kneelb4darth" created="Thu, 11 Aug 2016 16:25:22 +0000"  >&lt;p&gt;ok, sorry about that :/ Is there a more permanent  solution than mentioning rpath on each compilation ? &lt;/p&gt;</comment>
                            <comment id="1354325" author="acm" created="Thu, 11 Aug 2016 16:22:42 +0000"  >&lt;p&gt;Right, so /usr/local/lib is in fact &lt;b&gt;not&lt;/b&gt; in your default runtime library search path. When you link to libmongocxx or libbsoncxx, you need to specify it with -Wl,-rpath,/usr/local/lib as I originally suggested.&lt;/p&gt;</comment>
                            <comment id="1354323" author="kneelb4darth" created="Thu, 11 Aug 2016 16:20:33 +0000"  >&lt;p&gt;Now it works&lt;/p&gt;</comment>
                            <comment id="1354320" author="acm" created="Thu, 11 Aug 2016 16:18:55 +0000"  >&lt;p&gt;And what happens if you run &lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;LD_LIBRARY_PATH=/usr/local/lib ./hellomongo&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;&lt;/p&gt;</comment>
                            <comment id="1354317" author="kneelb4darth" created="Thu, 11 Aug 2016 16:17:39 +0000"  >&lt;p&gt;&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 293190 Aug 11 19:02 /usr/local/lib/libbsoncxx.a&lt;br/&gt;
lrwxrwxrwx 1 root root     20 Aug 11 19:07 /usr/local/lib/libbsoncxx.so -&amp;gt; libbsoncxx.so._noabi&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 189362 Aug 11 19:02 /usr/local/lib/libbsoncxx.so.3.0.2-rc0-pre&lt;br/&gt;
lrwxrwxrwx 1 root root     27 Aug 11 19:07 /usr/local/lib/libbsoncxx.so._noabi -&amp;gt; libbsoncxx.so.3.0.2-rc0-pre&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 612522 Aug 11 19:05 /usr/local/lib/libmongocxx.a&lt;br/&gt;
lrwxrwxrwx 1 root root     21 Aug 11 19:07 /usr/local/lib/libmongocxx.so -&amp;gt; libmongocxx.so._noabi&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 343051 Aug 11 19:03 /usr/local/lib/libmongocxx.so.3.0.2-rc0-pre&lt;br/&gt;
lrwxrwxrwx 1 root root     28 Aug 11 19:07 /usr/local/lib/libmongocxx.so._noabi -&amp;gt; libmongocxx.so.3.0.2-rc0-pre&lt;/p&gt;</comment>
                            <comment id="1354312" author="acm" created="Thu, 11 Aug 2016 16:16:20 +0000"  >&lt;p&gt;And, lastly, what does &lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; ls -la /usr/local/lib/libbsoncxx* /usr/local/lib/libmongocxx*&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt; say?&lt;/p&gt;</comment>
                            <comment id="1354279" author="kneelb4darth" created="Thu, 11 Aug 2016 15:53:10 +0000"  >&lt;p&gt;-I/usr/local/include/mongocxx/v_noabi -I/usr/local/include/libbson-1.0 -I/usr/local/include/libmongoc-1.0 -I/usr/local/include/bsoncxx/v_noabi  -L/usr/local/lib -lmongocxx -lbsoncxx &lt;/p&gt;</comment>
                            <comment id="1354274" author="acm" created="Thu, 11 Aug 2016 15:51:26 +0000"  >&lt;p&gt;And, what does:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --cflags --libs libmongocxx libbsoncxx&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Report?&lt;/p&gt;</comment>
                            <comment id="1354267" author="kneelb4darth" created="Thu, 11 Aug 2016 15:50:09 +0000"  >&lt;p&gt;This is the output: &lt;br/&gt;
 0x0000000000000001 (NEEDED)             Shared library: &lt;span class=&quot;error&quot;&gt;&amp;#91;libmongocxx.so._noabi&amp;#93;&lt;/span&gt;&lt;br/&gt;
 0x0000000000000001 (NEEDED)             Shared library: &lt;span class=&quot;error&quot;&gt;&amp;#91;libbsoncxx.so._noabi&amp;#93;&lt;/span&gt;&lt;br/&gt;
 0x0000000000000001 (NEEDED)             Shared library: &lt;span class=&quot;error&quot;&gt;&amp;#91;libstdc++.so.6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 0x0000000000000001 (NEEDED)             Shared library: &lt;span class=&quot;error&quot;&gt;&amp;#91;libgcc_s.so.1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 0x0000000000000001 (NEEDED)             Shared library: &lt;span class=&quot;error&quot;&gt;&amp;#91;libc.so.6&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="1354262" author="acm" created="Thu, 11 Aug 2016 15:46:36 +0000"  >&lt;p&gt;What does&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;readelf -a ./hellomongo | egrep &apos;NEEDED|RPATH&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Report?&lt;/p&gt;</comment>
                            <comment id="1354256" author="kneelb4darth" created="Thu, 11 Aug 2016 15:42:15 +0000"  >&lt;p&gt;That is my default library path. I tried to explicitly tell it the path too, gives the same error.&lt;/p&gt;</comment>
                            <comment id="1354232" author="acm" created="Thu, 11 Aug 2016 15:30:29 +0000"  >&lt;p&gt;Is /usr/local in the default library search on your system? If not, you probably need to tell the linker to embed /usr/local for the path into hellomongo. Something like:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;g++ -o ./helloworld -Wl,-rpath,/usr/local/lib ...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;As a test, you could try running your hellomongo binary with LD_LIBRARY_PATH=/usr/local/lib set in the environment and see if that fixes it.&lt;/p&gt;</comment>
                            <comment id="1354149" author="kneelb4darth" created="Thu, 11 Aug 2016 14:35:45 +0000"  >&lt;p&gt;-DCMAKE_INSTALL_PREFIX=/usr/local&lt;/p&gt;</comment>
                            <comment id="1354144" author="acm" created="Thu, 11 Aug 2016 14:32:55 +0000"  >&lt;p&gt;What was your install prefix when you installed the driver?&lt;/p&gt;</comment>
                            <comment id="1354131" author="kneelb4darth" created="Thu, 11 Aug 2016 14:21:55 +0000"  >&lt;p&gt;I have another problem regarding the driver. I installed the c++ driver successfully and compiled the code provided for testing . On the running the code, I get this error :&lt;/p&gt;

&lt;p&gt;```&lt;br/&gt;
./hellomongo: error while loading shared libraries: libmongocxx.so._noabi: cannot open shared object file: No such file or directory&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Is this an error caused due to incorrect installation or just a linking error?&lt;/p&gt;</comment>
                            <comment id="1354091" author="kneelb4darth" created="Thu, 11 Aug 2016 14:07:57 +0000"  >&lt;p&gt;I just needed a sudo to get clearance to create a folder. Guess should have read the log first :/&lt;/p&gt;</comment>
                            <comment id="1354025" author="acm" created="Thu, 11 Aug 2016 13:20:49 +0000"  >&lt;p&gt;Can you attach the files that &lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;ls /home/cortana/Desktop/mongo-cxx-driver-master/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install-*.log&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt; lists? That should make it possible to see what error is preventing MNMLSTC from installing.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsod6n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1227">Platforms 2016-08-26</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>