Trouble building natively on Heroku #116

Closed
pselden opened this Issue Mar 26, 2012 · 1 comment

Comments

2 participants
@pselden

pselden commented Mar 26, 2012

I know this isn't exactly domain... but I was hoping someone else out there might have been having this problem.

I'm deploying on heroku and getting this error:

   > pg@0.6.16 install /tmp/build_t7ec58gz96g8/node_modules/pg
   > node-waf configure build || (exit 0)

   Checking for program g++ or c++          : /usr/bin/g++ 
   Checking for program cpp                 : /usr/bin/cpp 
   Checking for program ar                  : /usr/bin/ar 
   Checking for program ranlib              : /usr/bin/ranlib 
   Checking for g++                         : ok  
   Checking for node path                   : not found 
   Checking for node prefix                 : ok /tmp/node-node-oxaC 
   Checking for program pg_config           : /usr/bin/pg_config 
   'configure' finished successfully (0.095s)
   Waf: Entering directory `/Users/me/Documents/myapp/node_modules/pg/build'
   Waf: Leaving directory `/Users/me/Documents/myapp/node_modules/pg/build'
   Traceback (most recent call last):
     File "/tmp/node-node-oxaC/bin/node-waf", line 16, in <module>
       Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
     File "/tmp/node-node-oxaC/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
       prepare_impl(t, cwd, ver, wafdir)
     File "/tmp/node-node-oxaC/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
       main()
     File "/tmp/node-node-oxaC/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
       fun(ctx)
     File "/tmp/node-node-oxaC/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
       return build_impl(bld)
     File "/tmp/node-node-oxaC/bin/../lib/node/wafadmin/Scripting.py", line 405, in build_impl
       bld.compile()
     File "/tmp/node-node-oxaC/bin/../lib/node/wafadmin/Build.py", line 268, in compile
       os.chdir(self.bldnode.abspath())
   OSError: [Errno 2] No such file or directory: '/Users/me/Documents/myapp/node_modules/pg/build'

Notice that it's trying to find a directory on my local machine. I DID have my node_modules/pg checked into in git at one point, but I no longer do. Any idea what could be causing this? There's a similar issue on: isaacs/npm#1872... maybe we need to do a clean before?

I do have another compiled module (bcrypt) that installs successfully, but it runs this as part of its build process:

   > bcrypt@0.5.0 install /tmp/build_t7ec58gz96g8/node_modules/bcrypt
   > make build

   rm -f bcrypt_lib.node
   rm -Rf build
   node-waf configure
   Checking for program g++ or c++          : /usr/bin/g++ 
   Checking for program cpp                 : /usr/bin/cpp 
   Checking for program ar                  : /usr/bin/ar 
   Checking for program ranlib              : /usr/bin/ranlib 
   Checking for g++                         : ok  
   Checking for program gcc or cc           : /usr/bin/gcc 
   Checking for gcc                         : ok  
   Checking for node path                   : not found 
   Checking for node prefix                 : ok /tmp/node-node-oxaC 
   Checking for function RAND_bytes         : yes 
   'configure' finished successfully (0.321s)
   node-waf build
   Waf: Entering directory `/tmp/build_t7ec58gz96g8/node_modules/bcrypt/build'

Notice that it removes some files/folders first.

Thanks!

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Sep 13, 2012

6 months old ticket, don't know when but this seems fixed. It works fine for me

ghost commented Sep 13, 2012

6 months old ticket, don't know when but this seems fixed. It works fine for me

@brianc brianc closed this Dec 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment