escript works - !! yes
Jimmy Olgeni
olgeni@REDACTED
Sat Jun 26 22:41:19 CEST 2004
Hi,
On Fri, 25 Jun 2004, Mark Scandariato wrote:
> When I installed it, beam_evm wasn't moved from the build directory and
> ERLANG_EARS was pointing to the build directory, too. (This didn't work out
> too well for me: I built it in a solaris /tmp filesystem).
The attached patches should fix the installation issue, but I still
had to edit the scripts and change ERLANG_EARS...
The install script should do something like this, with LOCALBASE being the
install prefix and ERTS_VSN the runtime version number:
for SCRIPT in ecc elink ear escript; do
sed -i "" -e "s@REDACTED=.*@ERLANG_EARS=${LOCALBASE}/lib/erlang/erts-${ERTS_VSN}@" ${LOCALBASE}/bin/${SCRIPT};
done
for SCRIPT in ecc elink; do
sed -i "" -e "s@REDACTED .*beam_evm@REDACTED beam_evm@" ${LOCALBASE}/bin/${SCRIPT};
done
beam_evm just needs to be in $PATH, so the generated path may be
removed, but ERLANG_EARS requires patching and I couldn't figure out
how to do this in the OTP makefile...
--
jimmy
-------------- next part --------------
$FreeBSD$
--- erts/emulator/Makefile.in.orig Sat Jun 26 13:57:01 2004
+++ erts/emulator/Makefile.in Sat Jun 26 13:57:39 2004
@@ -220,6 +220,7 @@
$(INSTALL_DATA) $(RELEASE_INCLUDES) $(RELSYSDIR)/src
$(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE) $(RELSYSDIR)/bin
ifeq ($(ERLANG_OSTYPE), unix)
+ $(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE_SAE) $(RELSYSDIR)/bin
$(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE_ELIB) $(RELSYSDIR)/bin
$(INSTALL_PROGRAM) $(BINDIR)/$(CS_EXECUTABLE) $(RELSYSDIR)/bin
endif
-------------- next part --------------
$FreeBSD$
--- Makefile.in.orig Fri Dec 19 13:55:58 2003
+++ Makefile.in Sat Jun 26 20:25:23 2004
@@ -534,14 +534,20 @@
# Erlang base public files
#
install.bin:
- rm -f $(BINDIR)/erl $(BINDIR)/erlc \
- $(BINDIR)/ecc $(BINDIR)/elink $(BINDIR)/ear $(BINDIR)/escript
+ rm -f $(BINDIR)/erl $(BINDIR)/erlc $(BINDIR)/run_erl \
+ $(BINDIR)/to_erl $(BINDIR)/beam_evm $(BINDIR)/ear \
+ $(BINDIR)/ecc $(BINDIR)/elink $(BINDIR)/erlexec \
+ $(BINDIR)/escript
${LN_S} $(ERLANG_BINDIR)/erl $(BINDIR)/erl
${LN_S} $(ERLANG_BINDIR)/erlc $(BINDIR)/erlc
- ${LN_S} $(ERLANG_BINDIR)/ecc $(BINDIR)/ecc
- ${LN_S} $(ERLANG_BINDIR)/elink $(BINDIR)/elink
- ${LN_S} $(ERLANG_BINDIR)/ear $(BINDIR)/ear
- ${LN_S} $(ERLANG_BINDIR)/escript $(BINDIR)/escript
+ ${LN_S} $(ERLANG_BINDIR)/run_erl $(BINDIR)/run_erl
+ ${LN_S} $(ERLANG_BINDIR)/to_erl $(BINDIR)/to_erl
+ ${LN_S} $(ERLANG_ERTSBINDIR)/beam_evm $(BINDIR)/beam_evm
+ ${LN_S} $(ERLANG_ERTSBINDIR)/ear $(BINDIR)/ear
+ ${LN_S} $(ERLANG_ERTSBINDIR)/ecc $(BINDIR)/ecc
+ ${LN_S} $(ERLANG_ERTSBINDIR)/elink $(BINDIR)/elink
+ ${LN_S} $(ERLANG_ERTSBINDIR)/erlexec $(BINDIR)/erlexec
+ ${LN_S} $(ERLANG_ERTSBINDIR)/escript $(BINDIR)/escript
#
# Directories needed before we can install
More information about the erlang-questions
mailing list