/bin/sh: build server : command not found

February 2, 2011 at 18:44:36
Specs: Linux tuxedo
hi i am getting /bin/sh: build server : command not found while using make file and it throws error 127 can anyone help me out ?

See More: /bin/sh: build server : command not found

Report •

#1
February 2, 2011 at 22:20:14
Linux generally does not have a #!/bin/sh command. Linux, by default, uses the #!/bin/bash shell. Try editing the make file and change /bin/sh to /bin/bash.

Report •

#2
February 3, 2011 at 04:20:21
I'm not quite sure that's quite accurate, nails. /bin/sh is one of those lowest-common denominators that is present on just about every UNIX-type system (albeit often a link to another program). I've just checked Mandriva, Ubuntu, and OpenSuSE, and all have a /bin/sh.

I suspect the problem lies with the "build server" part of the command. Without knowing what the makefile is for, or seeing it's contents, it's difficult to be much more precise.


Report •

#3
February 3, 2011 at 13:25:51
Is this on a cgywin setup? http://cygwin.com/ml/cygwin/1997-06...

"The era of big government is over," said Clinton 1996


Report •

Related Solutions

#4
February 4, 2011 at 03:28:41
Hi Ijack,

This is the make file

RM=rm
RMFLAGS=-f

#STLPORT_DIR=/usr/local/STLport-4.0/stlport
#/appl_sw/ontw/stlport
#STL_INCLUDES=-I$(STLPORT_DIR)

MAKE=make
#COPTS=-g
CDEFINES=-DOTL_ORA8I -DUSE_STD_NAME_SPACE -D_G_HAVE_BOOL=1
#CDEFINES=-DOTL_ORA8I
CINCLUDES=$(CC_INCLUDES) $(TUX_INCLUDES) $(ORA_INCLUDES) $(ADAPTER_INCLUDES)
CFLAGS=$(COPTS) $(CDEFINES) $(CINCLUDES)
BUILDSERVERCFLAGS=
#BUILDSERVERCFLAGS=-+

INSTALL=/usr/bin/install
INSTALLFLAGS=-O `id -u` -G `id -g`

LDLIBS=$(ORA_LIBS) $(TUX_LIBS) $(CC_LIBS) -ldl -lHubLibrary -ladk
LDFLAGS=$(CC_LIBDIRS) $(ORA_LIBDIRS) $(ADAPTER_LIBDIRS) $(TUX_LIBDIRS)

TUX_LIBS=-ltmib -lqm
TUX_INCLUDES=-I$(TUXDIR)/include
TUX_LIBDIRS=-L$(TUXDIR)/lib

ADAPTER_LIBDIRS=-L.

CC=gcc
#CC=CC

CC_LIBS=-lstdc++
#CC_LIBS=
CC_INCLUDES=-I. -I../AdapterConfiguration
CC_LIBDIRS=

#
# Oracle settings
ORA_INCLUDES=-I$(TUXDIR)/include \
-I$(ORACLE_HOME)/precomp/public \
-I$(ORACLE_HOME)/rdbms/demo \
-I$(ORACLE_HOME)/rdbms/public \
-I$(ORACLE_HOME)/plsql/public \
-I$(ORACLE_HOME)/network/public

ORA_LIBS= -L${ORACLE_HOME}/lib -lclntsh
#ORA_LIBS= -lm -L${ORACLE_HOME}/lib ${ORACLE_HOME}/lib/libxa.a \
# ${ORACLE_HOME}/lib/libsql.a -lxa -lsql -lsqlnet -lncr \
# -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet \
# -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 \
# -lnlsrtl3 -lcore3 -lnlsrtl3 -lld -lc

.SUFFIXES: $(SUFFIXES) .i

.C.o:
$(CC) $(CFLAGS) -o $@ -c $?

.C.i:
$(CC) $(CFLAGS) -P $?

SRCS= OCIAdapter.C \
OCIServer.C \
OCIXAServer.C \
OCIXAAdapter.C

ADAPTER_SRCS= \
../AdapterConfiguration/Configuration.C \
../AdapterConfiguration/Section.C \
../AdapterConfiguration/SectionBuilderSelector.C \
../AdapterConfiguration/SectionKey.C \
../AdapterConfiguration/SectionVariableBuilder.C \
../AdapterConfiguration/SectionVariables.C \
../AdapterConfiguration/ServerSection.C \
../AdapterConfiguration/ServerSectionBuilder.C \
../AdapterConfiguration/ServerSectionValidator.C \
../AdapterConfiguration/ServiceSection.C \
../AdapterConfiguration/ServiceSectionBuilder.C \
../AdapterConfiguration/ServiceSectionValidator.C \
../AdapterConfiguration/FunctionlistSection.C \
../AdapterConfiguration/FunctionlistSectionBuilder.C \
../AdapterConfiguration/FunctionlistSectionValidator.C \
../AdapterConfiguration/FilterSection.C \
../AdapterConfiguration/FilterSectionBuilder.C \
../AdapterConfiguration/FilterSectionValidator.C \
../AdapterConfiguration/UnixTextFileReader.C

SECURITY_OBJS= \
./security/security.o \
./security_module/list.o \
./security_module/md5.o \
./security_module/security_module_shared.o

ADAPTER_OBJS=$(ADAPTER_SRCS:.C=.o)
OBJS=$(SRCS:.C=.o) $(ADAPTER_OBJS) $(SECURITY_OBJS)

TARGETS=OCIAdapter libadapter.a
#OCIXAAdapter OCI16Adapter OCIXA16Adapter libadapter.a

all: $(TARGETS)

clean:
$(RM) $(RMFLAGS) $(OBJS) *.o
$(RM) $(RMFLAGS) core *.i
$(MAKE) -C ./security clean
$(MAKE) -C ./encrypt clean
$(MAKE) -C ./security_module clean

clobber: clean
$(RM) $(RMFLAGS) $(TARGETS)

install:
cp OCIAdapter /home/c2bhub/hub/appdir/eLink2Oracle
# $(INSTALL) $(INSTALLFLAGS) -M 0755 -f ../app OCIAdapter
# $(INSTALL) $(INSTALLFLAGS) -M 0755 -f ../app OCIXAAdapter


OCIAdapter: OCIAdapter.o libadapter.a secmod security.o
CC="$(CC)" CFLAGS="$(CFLAGS) $(BUILDSERVERCFLAGS) $(LDFLAGS)" \
buildserver -v -o $@ \
-f "OCIAdapter.o $(ADAPTER_OBJS) $(SECURITY_OBJS)" \
-f "$(LDLIBS)" \
-s :eLink2Oracle \
# -r Oracle_XA_8
strip OCIAdapter


Report •

#5
February 4, 2011 at 03:47:36
Ah, I see. It's trying to compile a program to use with an Oracle Database. Do you have the Oracle development files installed on your PC, and are the environment variables for it correctly configured?

(Edit: It looks like you also need to install something called Tuxedo as that's where the "buildserver" command is used - is this installed on your system? TBH, if you have all of this installed then you probably know more about this particular application than anyone here does!)


Report •

Ask Question