{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/node-oracledb/issues/577","repository_url":"https://api.github.com/repos/oracle/node-oracledb","labels_url":"https://api.github.com/repos/oracle/node-oracledb/issues/577/labels{/name}","comments_url":"https://api.github.com/repos/oracle/node-oracledb/issues/577/comments","events_url":"https://api.github.com/repos/oracle/node-oracledb/issues/577/events","html_url":"https://github.com/oracle/node-oracledb/issues/577","id":197944801,"node_id":"MDU6SXNzdWUxOTc5NDQ4MDE=","number":577,"title":"NJS-045: cannot load the oracledb add-on binary","user":{"login":"yushanhsieh","id":7875877,"node_id":"MDQ6VXNlcjc4NzU4Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/7875877?v=4","gravatar_id":"","url":"https://api.github.com/users/yushanhsieh","html_url":"https://github.com/yushanhsieh","followers_url":"https://api.github.com/users/yushanhsieh/followers","following_url":"https://api.github.com/users/yushanhsieh/following{/other_user}","gists_url":"https://api.github.com/users/yushanhsieh/gists{/gist_id}","starred_url":"https://api.github.com/users/yushanhsieh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yushanhsieh/subscriptions","organizations_url":"https://api.github.com/users/yushanhsieh/orgs","repos_url":"https://api.github.com/users/yushanhsieh/repos","events_url":"https://api.github.com/users/yushanhsieh/events{/privacy}","received_events_url":"https://api.github.com/users/yushanhsieh/received_events","type":"User","site_admin":false},"labels":[{"id":253930243,"node_id":"MDU6TGFiZWwyNTM5MzAyNDM=","url":"https://api.github.com/repos/oracle/node-oracledb/labels/install%20&%20configuration","name":"install & configuration","color":"fad8c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-12-29T02:35:47Z","updated_at":"2018-08-02T01:15:36Z","closed_at":"2017-02-13T08:45:55Z","author_association":"NONE","body":"i'm using Jest to test my server \r\n\r\non OSX\r\nnode version : v6.9.1\r\noracledb version : 1.12.0\r\ngcc version : 4.2.1\r\n\r\nerror message is :\r\n\r\n`NJS-045: cannot load the oracledb add-on binary\r\nat Object.<anonymous> (node_modules/oracledb/lib/oracledb.js:51:15)`\r\n\r\n\r\nI found oracledb.js line 35\r\n`\r\n  oracledbCLib =  require('../build/Release/oracledb');\r\n`\r\n\r\n\r\nBut there is only  `node_module/oracledb/build/Release/oracledb.node` in it\r\n\r\n\r\nchange oracledb.js line 35 to \r\n\r\n`\r\n  oracledbCLib =  require('../build/Release/oracledb.node');\r\n`\r\n\r\n\r\nit works\r\n\r\n\r\nBut I want to know is osx build problem or what?\r\n\r\nI don't what to change the code after I build it every time\r\n"},"comment":{"url":"https://api.github.com/repos/oracle/node-oracledb/issues/comments/409773773","html_url":"https://github.com/oracle/node-oracledb/issues/577#issuecomment-409773773","issue_url":"https://api.github.com/repos/oracle/node-oracledb/issues/577","id":409773773,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTc3Mzc3Mw==","user":{"login":"cjbj","id":200778,"node_id":"MDQ6VXNlcjIwMDc3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/200778?v=4","gravatar_id":"","url":"https://api.github.com/users/cjbj","html_url":"https://github.com/cjbj","followers_url":"https://api.github.com/users/cjbj/followers","following_url":"https://api.github.com/users/cjbj/following{/other_user}","gists_url":"https://api.github.com/users/cjbj/gists{/gist_id}","starred_url":"https://api.github.com/users/cjbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjbj/subscriptions","organizations_url":"https://api.github.com/users/cjbj/orgs","repos_url":"https://api.github.com/users/cjbj/repos","events_url":"https://api.github.com/users/cjbj/events{/privacy}","received_events_url":"https://api.github.com/users/cjbj/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T01:15:36Z","updated_at":"2018-08-02T01:15:36Z","author_association":"MEMBER","body":"@basalter Improvements would require some heuristics to interrogate what is installed, and what versions.  I'm not a Windows user.  Can you submit a PR or some code snippets?\r\n\r\n[For future readers, note that for node-oracledb 2 installation on Windows there are pre-built binaries available for current Node versions so you don't need a compiler and don't need to set to OCI_VERSION, OCI_LIB_DIR or OCI_INC_DIR: see the [instructions](https://oracle.github.io/node-oracledb/INSTALL.html#instwin)]"}}
{"actor":{"display_login":"cjbj"}}