Opened 14 years ago

Closed 13 years ago

#26633 closed defect (duplicate)

couchdb cannot be installed when prefix is not /opt/local

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: couchdb

Description

couchdb cannot be installed when prefix is not /opt/local. Here's what I get on a Leopard machine with prefix /mp:

:info:configure checking for erl... /mp/bin/erl
:info:configure checking for erlc... /mp/bin/erlc
:info:configure checking erl_driver.h usability... no
:info:configure checking erl_driver.h presence... no
:info:configure checking for erl_driver.h... no
:info:configure configure: error: Could not find the `erl_driver.h' header.
:info:configure 
:info:configure Are the Erlang headers installed? Use the `--with-erlang' option to specify the
:info:configure path to the Erlang include directory.

"/opt/local" is hardcoded in several places in the source code:

$ cd $(port dir couchdb)
$ sudo port extract
Password:
--->  Computing dependencies for couchdb
--->  Fetching couchdb
--->  Verifying checksum(s) for couchdb
--->  Extracting couchdb
$ grep /opt/local -r work/
work/apache-couchdb-1.0.1/build-aux/ltmain.sh:: ${SED="/opt/local/bin/gsed"}
work/apache-couchdb-1.0.1/configure:    ERLANG_FLAGS="$ERLANG_FLAGS -I/opt/local/lib/erlang/usr/include"
work/apache-couchdb-1.0.1/configure:    JS_FLAGS="$JS_FLAGS -I/opt/local/include"
work/apache-couchdb-1.0.1/configure:    JS_FLAGS="$JS_FLAGS -I/opt/local/include/js"
work/apache-couchdb-1.0.1/configure:LIB_FLAGS="$JS_LIB_FLAGS -L/usr/local/lib -L/opt/local/lib"
work/apache-couchdb-1.0.1/configure.ac:    ERLANG_FLAGS="$ERLANG_FLAGS -I/opt/local/lib/erlang/usr/include"
work/apache-couchdb-1.0.1/configure.ac:    JS_FLAGS="$JS_FLAGS -I/opt/local/include"
work/apache-couchdb-1.0.1/configure.ac:    JS_FLAGS="$JS_FLAGS -I/opt/local/include/js"
work/apache-couchdb-1.0.1/configure.ac:LIB_FLAGS="$JS_LIB_FLAGS -L/usr/local/lib -L/opt/local/lib"
work/apache-couchdb-1.0.1/etc/launchd/org.apache.couchdb.plist.tpl.in:      <string>/opt/local/lib:$DYLD_LIBRARY_PATH</string>

Change History (1)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.