error while loading shared libraries: ?: cannot open shared object file: No such file or directory

294 views
Skip to first unread message

Ron Barak

unread,
Aug 28, 2016, 6:14:13 PM8/28/16
to mongodb-user
After installing MongoDB, and trying to run mongod, I get this opaque error message:

$ mongod
C
:/cygwin/usr/local/bin/mongod.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory


Any ideas how can I debug this issue?


OS is Cygwin over Windows7.

Amar

unread,
Aug 31, 2016, 7:03:35 PM8/31/16
to mongodb-user

Hi Ron,

I tested using Windows 7 Professional Service Pack 1 (64-bit), Cygwin and MongoDB 3.2.9 (with SSL) and mongod started correctly:

user@user-PC ~
$ mongod
2016-08-31T03:08:51.849+0100 I CONTROL  [main] Hotfix KB2731284 or later update is not installed, will zero-out data files
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] MongoDB starting : pid=3052 port=27017 dbpath=C:\data\db\ 64-bit host=user-PC
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] db version v3.2.9
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] git version: 22ec9e93b40c85fc7cae7d56e7d6a02fd811088c
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1p-fips 9 Jul 2015
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] allocator: tcmalloc
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] modules: none
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] build environment:
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten]     distmod: 2008plus-ssl
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten]     distarch: x86_64
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten]     target_arch: x86_64
2016-08-31T03:08:51.850+0100 I CONTROL  [initandlisten] options: {}
2016-08-31T03:08:51.851+0100 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=2G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2016-08-31T03:08:51.931+0100 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory 'C:/data/db/diagnostic.data'
2016-08-31T03:08:51.931+0100 I NETWORK  [HostnameCanonicalizationWorker] Starting hostname canonicalization worker
2016-08-31T03:08:51.942+0100 I NETWORK  [initandlisten] waiting for connections on port 27017

If you are still having this issue, could you please post:

  • Your MongoDB version
  • Your Windows 7 Version (home, professional, 32-bit, or 64-bit)
  • From where did you obtain the MongoDB binaries

Regards,

Amar


Reply all
Reply to author
Forward
0 new messages