Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install with discount in homebrew #1

Open
drnic opened this issue Apr 21, 2010 · 1 comment
Open

Cannot install with discount in homebrew #1

drnic opened this issue Apr 21, 2010 · 1 comment

Comments

@drnic
Copy link

drnic commented Apr 21, 2010

I have homebrew in ~/.homebrew, and after I install discount and install markdown from kiwi it cannot find markdown. Any thoughts? My lowlevel understanding of build scripts is weak.

Installing discount:

$ brew install discount
Warning: It appears you have Macports or Fink installed
Although, unlikely, this can break builds or cause obscure runtime issues.
If you experience problems try uninstalling these tools.
==> Downloading http://www.pell.portland.or.us/~orc/Code/markdown/discount-1.6.1.tar.gz
######################################################################## 100.0%
==> ./configure.sh --prefix=/Users/drnic/.homebrew/Cellar/discount/1.6.1 --mandir=/Users/drnic/.homebrew/Cellar/discount/1.6.1/share/man
==> make install.everything
/Users/drnic/.homebrew/Cellar/discount/1.6.1: 27 files, 436K, built in 14 seconds

Installing markdown:

$ kiwi install markdown
   install : markdown
   resolve : version 0.0.1
   install : already installed
~/js/node/fab[master]$ kiwi uninstall markdown
 uninstall : all versions of markdown
~/js/node/fab[master]$ kiwi install markdown
   install : markdown
   resolve : version 0.0.1
    create : /Users/drnic/.kiwi/current/seeds/markdown/0.0.1
     fetch : 0.0.1.seed
    unpack : /Users/drnic/.kiwi/current/seeds/markdown/0.0.1/markdown.seed
    remove : /Users/drnic/.kiwi/current/seeds/markdown/0.0.1/markdown.seed
     check : dependencies
        cd : /Users/drnic/.kiwi/current/seeds/markdown/0.0.1
     build : node-waf configure build
Check for program g++ or c++             : /usr/bin/g++ 
Check for program cpp                    : /usr/bin/cpp 
Check for program ar                     : /usr/bin/ar 
Check for program ranlib                 : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for node prefix                 : ok /Users/drnic/.homebrew/Cellar/node/0.1.91 
Checking for library markdown            : not found 
'configure' finished successfully (0.513s)
Waf: Entering directory `/Users/drnic/.kiwi/default/seeds/markdown/0.0.1/build'
[1/2] cxx: src/markdown.cc -> build/default/src/markdown_1.o
../src/markdown.cc:12:21: error: mkdio.h: No such file or directory
../src/markdown.cc: In function ‘v8::Handle Parse(const v8::Arguments&)’:
../src/markdown.cc:29: error: ‘MMIOT’ was not declared in this scope
../src/markdown.cc:29: error: ‘doc’ was not declared in this scope
../src/markdown.cc:31: error: ‘mkd_string’ was not declared in this scope
../src/markdown.cc:33: error: ‘mkd_compile’ was not declared in this scope
../src/markdown.cc:34: error: ‘mkd_document’ was not declared in this scope
../src/markdown.cc:36: error: ‘mkd_cleanup’ was not declared in this scope
Waf: Leaving directory `/Users/drnic/.kiwi/default/seeds/markdown/0.0.1/build'
Build failed:  -> task failed (err #1): 
    {task: cxx markdown.cc -> markdown_1.o}

Do I need to add something to my ENV so it can find markdown library?

Checking for library markdown            : not found
@tj
Copy link
Owner

tj commented Apr 21, 2010

Hmm I currently have Waf checking standards dirs:
libpath = ['/usr/lib', '/usr/local/lib', '/opt/local/lib']

thats kind of the trouble of having this stuff all over in different directories, but that
being said there is not currently a (good) way to pass configuration arguments to
the build command. does homebrew let you change the prefix when you install discount?

I might have to whip up something in kiwi so you can point it to the right place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants