{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/node-oracledb/issues/94","labels_url":"https://api.github.com/repos/oracle/node-oracledb/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/oracle/node-oracledb/issues/94/comments","events_url":"https://api.github.com/repos/oracle/node-oracledb/issues/94/events","html_url":"https://github.com/oracle/node-oracledb/issues/94","id":75327264,"number":94,"title":"gyp: Undefined variable oci_lib_dir in binding.gyp while trying to load binding.gyp","user":{"login":"GaryFurash","id":715614,"avatar_url":"https://avatars.githubusercontent.com/u/715614?v=3","gravatar_id":"","url":"https://api.github.com/users/GaryFurash","html_url":"https://github.com/GaryFurash","followers_url":"https://api.github.com/users/GaryFurash/followers","following_url":"https://api.github.com/users/GaryFurash/following{/other_user}","gists_url":"https://api.github.com/users/GaryFurash/gists{/gist_id}","starred_url":"https://api.github.com/users/GaryFurash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaryFurash/subscriptions","organizations_url":"https://api.github.com/users/GaryFurash/orgs","repos_url":"https://api.github.com/users/GaryFurash/repos","events_url":"https://api.github.com/users/GaryFurash/events{/privacy}","received_events_url":"https://api.github.com/users/GaryFurash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oracle/node-oracledb/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-11T19:15:40Z","updated_at":"2015-05-20T02:51:36Z","closed_at":null,"body":"I'm installing on Windows. After setting python, vcvars64.bat (for vc11), etc., and I enter\r\n\r\nnpm install -g oracledb\r\n\r\nit gives the error\r\n\r\ngyp: Undefined variable oci_lib_dir in binding.gyp while trying to load binding.gyp\r\n\r\neven though oci_lib_dir points to the (valid) directory\r\n\r\nhere are my environment variables:\r\n\r\n\r\nALLUSERSPROFILE=C:\\ProgramData\r\nAPPDATA=C:\\Users\\furashg\\AppData\\Roaming\r\nCLINK_DIR=C:\\Program Files (x86)\\clink\\0.4.4\r\nCommandPromptType=Cross\r\nCommonProgramFiles=C:\\Program Files\\Common Files\r\nCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\r\nCommonProgramW6432=C:\\Program Files\\Common Files\r\nCOMPUTERNAME=UITS-GARFUR\r\nComSpec=C:\\Windows\\system32\\cmd.exe\r\nCYGWIN_HOME=C:\\Apps\\Cygwin64\r\nDevEnvDir=C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\\r\nFP_NO_HOST_CHECK=NO\r\nFramework35Version=v3.5\r\nFrameworkDir=C:\\Windows\\Microsoft.NET\\Framework\\\r\nFrameworkDIR32=C:\\Windows\\Microsoft.NET\\Framework\\\r\nFrameworkDIR64=C:\\Windows\\Microsoft.NET\\Framework64\r\nFrameworkVersion=v4.0.30319\r\nFrameworkVersion32=v4.0.30319\r\nFrameworkVersion64=v4.0.30319\r\nHOMEDRIVE=C:\r\nHOMEPATH=\\Users\\furashg\r\nINCLUDE=C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\INCLUDE;C:\\Program Files (x86)\\Windows Kits\\8.0\\include\\shared;C:\\Program Files (x86)\\Windows Kits\\8.0\\include\\um;C:\\Program Files (x86)\\Windows Kits\\8.0\\include\\winrt;\r\nJAVA_HOME=C:\\Progra~1\\Java\\jdk1.6.0_34\r\nLD_LIBRARY_PATH=C:\\Apps\\instantclient_12_1\r\nLIB=C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\LIB\\amd64;C:\\Program Files (x86)\\Windows Kits\\8.0\\lib\\win8\\um\\x64;\r\nLIBPATH=C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Windows\\Microsoft.NET\\Framework64\\v3.5;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Windows\\Microsoft.NET\\Framework\\v3.5;C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\LIB\\amd64;C:\\Program Files (x86)\\Windows Kits\\8.0\\References\\CommonConfiguration\\Neutral;\\Microsoft.VCLibs\\11.0\\References\\CommonConfiguration\\neutral;\r\nLOCALAPPDATA=C:\\Users\\furashg\\AppData\\Local\r\nLOGONSERVER=\\\\PANTHER\r\nNLS_LANG=.UTF8\r\nNODE_HOME=C:\\Apps\\nodejs\r\nNODE_PATH=C:\\Apps\\nodejs;C:\\Users\\furashg\\AppData\\Roaming\\npm\\node_modules\r\nNUMBER_OF_PROCESSORS=4\r\nOCI_HOME=C:\\Apps\\instantclient_12_1\r\nOCI_INC_DIR=c:\\Apps\\instantclient_12_1\\sdk\\include\r\nOCI_LIB_DIR=c:\\Apps\\instantclient_12_1\\sdk\\lib\\msvc\\\r\nOC_VERSION=12\r\nORACLE_HOME=C:\\Apps\\instantclient_12_1\r\nOS=Windows_NT\r\nPath=C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\BIN\\x86_amd64;C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\BIN;C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\Tools;C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319;C:\\Windows\\Microsoft.NET\\Framework\\v3.5;C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Team Tools\\Performance Tools;C:\\Program Files (x86)\\Windows Kits\\8.0\\bin\\x86;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.0A\\bin\\NETFX 4.0 Tools;;C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64;C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\Lib;C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\DLLs;C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\Lib\\lib-tk;C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\Scripts;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Progra~1\\Java\\jdk1.6.0_34\\bin;C:\\Program Files (x86)\\Skype\\Phone\\;C:\\Apps\\nodejs\\;C:\\Program Files\\Microsoft Windows Performance Toolkit\\;C:\\Apps\\Git\\bin;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Apps\\WinMerge;C:\\Apps\\nodejs;C:\\Users\\furashg\\AppData\\Roaming\\npm\\node_modules;C:\\Apps\\instantclient_12_1;C:\\Users\\furashg\\AppData\\Roaming\\npm;C:\\Users\\furashg\\bin;C:\\Apps\\instantclient_12_1\\vc11\r\nPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\r\nPlatform=x64\r\nPROCESSOR_ARCHITECTURE=AMD64\r\nPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel\r\nPROCESSOR_LEVEL=6\r\nPROCESSOR_REVISION=2a07\r\nProgramData=C:\\ProgramData\r\nProgramFiles=C:\\Program Files\r\nProgramFiles(x86)=C:\\Program Files (x86)\r\nProgramW6432=C:\\Program Files\r\nPROMPT=C\bL\bI\bN\bK\b \b$P$G\r\nPSModulePath=C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\\r\nPUBLIC=C:\\Users\\Public\r\nPYTHONHOME=C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\r\nPYTHONPATH=C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\Lib;C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\DLLs;C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\Lib\\lib-tk\r\nPYTHON_2_HOME=C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\r\nPYTHON_3_HOME=C:\\Apps\\WinPython-64bit-3.3\\python-3.3.5.amd64\r\nSESSIONNAME=Console\r\nSystemDrive=C:\r\nSystemRoot=C:\\Windows\r\nTCL_LIBRARY=C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\tcl\\tcl8.5\r\nTEMP=C:\\Users\\furashg\\AppData\\Local\\Temp\r\nTK_LIBRARY=C:\\Apps\\WinPython-64bit-2.7\\python-2.7.9.amd64\\tcl\\tcl8.5\r\nTMP=C:\\Users\\furashg\\AppData\\Local\\Temp\r\nTNS_ADMIN=C:\\Users\\Public\\instantclient_12_1\\network\\admin\r\nTRIREME_CLASSPATH=C:\\Apps\\instantclient_12_1\\ojdbc7.jar\r\nUSERDNSDOMAIN=CATNET.ARIZONA.EDU\r\nUSERDOMAIN=CATNET\r\nUSERNAME=furashg\r\nUSERPROFILE=C:\\Users\\furashg\r\nVCINSTALLDIR=C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\\r\nVIM_HOME=C:\\Apps\\vim\\vim74\r\nVS100COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\Tools\\\r\nVS110COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\Tools\\\r\nVS120COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\Tools\\\r\nVSINSTALLDIR=C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\\r\nwindir=C:\\Windows\r\nWindowsSdkDir=C:\\Program Files (x86)\\Windows Kits\\8.0\\\r\nWindowsSdkDir_old=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.0A\\\r\nwindows_tracing_flags=3\r\nwindows_tracing_logfile=C:\\BVTBin\\Tests\\installpackage\\csilogfile.log\r\n"},"comment":{"url":"https://api.github.com/repos/oracle/node-oracledb/issues/comments/103734458","html_url":"https://github.com/oracle/node-oracledb/issues/94#issuecomment-103734458","issue_url":"https://api.github.com/repos/oracle/node-oracledb/issues/94","id":103734458,"user":{"login":"StigmaKim","id":11647938,"avatar_url":"https://avatars.githubusercontent.com/u/11647938?v=3","gravatar_id":"","url":"https://api.github.com/users/StigmaKim","html_url":"https://github.com/StigmaKim","followers_url":"https://api.github.com/users/StigmaKim/followers","following_url":"https://api.github.com/users/StigmaKim/following{/other_user}","gists_url":"https://api.github.com/users/StigmaKim/gists{/gist_id}","starred_url":"https://api.github.com/users/StigmaKim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StigmaKim/subscriptions","organizations_url":"https://api.github.com/users/StigmaKim/orgs","repos_url":"https://api.github.com/users/StigmaKim/repos","events_url":"https://api.github.com/users/StigmaKim/events{/privacy}","received_events_url":"https://api.github.com/users/StigmaKim/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T02:51:36Z","updated_at":"2015-05-20T02:51:36Z","body":"I had the same problem  several times.\r\n\r\nI resolved it as downgrading node js version from .12.xx to 0.10.38 with nvm-windows( I use win7 64it)\r\n\r\nand It works everytime. I installed 3 times."}}