[CDRIVER-3717] Installation instructions do not mention installing driver dev packages Created: 10/Jun/20 Updated: 18/Dec/23 Resolved: 17/May/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | docs |
| Affects Version/s: | None |
| Fix Version/s: | 1.24.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Oleg Pudeyev (Inactive) | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Quarter: | FY24Q2 | ||||||||
| Description |
|
http://mongoc.org/libmongoc/current/installing.html appears to have instructions for two use cases:
It appears to not address the use case of someone installing libmongoc to develop an application with it, which could perhaps be the most common use case, and in which situation libmongoc-dev/libbson-dev packages must also be installed. SO inquiry: https://stackoverflow.com/questions/62289167/compiling-c-program-with-libmongoc-1-0/ |
| Comments |
| Comment by Tomas Llorente [ 31/Jul/23 ] | |||||||||
|
Problem solved. | |||||||||
| Comment by Kevin Albertson [ 31/Jul/23 ] | |||||||||
|
The mongo-c-driver package appears to have development files necessary to compile an application using the C driver. The following steps were used to build a test application using the C driver on Arch Linux using pacman to install the package: Update package database:
Install tools to compile a test program:
Install the C driver:
Compile a test program:
Where the contents of hello_mongoc.c are as follows:
| |||||||||
| Comment by Tomas Llorente [ 31/Jul/23 ] | |||||||||
|
I find that the fix for this issue consisted in suggesting the use of apt (or dnf, or yum) That suggestion was incorporated in the, already mentioned, install instructions: The problem is that this solution is not possible in Arch Linux, since: | |||||||||
| Comment by Githook User [ 17/May/23 ] | |||||||||
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
Use `-dev` packages in default instructions. Users reading instructions may be more likely to want to build applications with the C driver. Link to Debian package pages to reference version. fix format on debian instructions
Use `-devel` packages in default instructions. Users reading instructions may be more likely to want to build applications with the C driver.
|