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

Suggestion on enhancing installation-related parameter values #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 13 additions & 14 deletions Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COMP_FLAGS += -DHAVE_WINDOWED_MODE
# add real-time lib for clock_gettime
LIBRT = -lrt
endif
ifneq ($(UNAME), Darwin)
ifneq ($(UNAME), Darwin)
# OSX doesn't have /proc, TODO check BSD
COMP_FLAGS += -DHAVE_PROC_FILESYS
endif
Expand All @@ -54,8 +54,8 @@ ifeq ($(UNAME), Darwin) # homebrew
INSTALL=ginstall
endif

# NOTE: This is not double assignment. It creates an expression that the
# unit tests (e.g.) can evaulate to dynamically set LD_LIBRARY_PATH or
# NOTE: This is not double assignment. It creates an expression that the
# unit tests (e.g.) can evaulate to dynamically set LD_LIBRARY_PATH or
# DYLD_LIBRARY_PATH to use the locally build libs as they run the tests.
ifeq ($(UNAME), Darwin) # homebrew
LD_LIB_PATH=DYLD_LIBRARY_PATH=$(TOPDIR)/src/lib/$(OBJDIR):$(LD_LIBRARY_PATH)
Expand All @@ -73,12 +73,12 @@ ARCH_SUFFIX=64
endif

# where to install files:
#PREFIX=/usr/local
PREFIX ?= /tmp/install
BIN_PREFIX ?= $(PREFIX)/bin
PERL_PREFIX ?= $(PREFIX)
MAN_PREFIX ?= $(PREFIX)/share/man
INC_PREFIX ?= $(PREFIX)/include
PREFIX=/usr/local
#PREFIX ?= /tmp/install
BIN_PREFIX = $(PREFIX)/bin
PERL_PREFIX = $(PREFIX)
MAN_PREFIX = $(PREFIX)/share/man
INC_PREFIX = $(PREFIX)/include

############################################################

Expand Down Expand Up @@ -113,7 +113,7 @@ profile::
$(MAKE) MODE=profile make-recursive-default-make-target
test-prof::
$(MAKE) MODE=profile make-recursive-test
test-fast::
test-fast::
$(MAKE) FAST=1 make-recursive-test
valg-fast::
$(MAKE) FAST=1 make-recursive-valg
Expand Down Expand Up @@ -166,7 +166,7 @@ ifeq ("$(GCC_GTE_48)", "1")
PEDANTIC += -Wunreachable-code
endif

ifeq ($(DISABLE_TSC),1)
ifeq ($(DISABLE_TSC),1)
COMP_FLAGS += -DDISABLE_TSC
endif

Expand Down Expand Up @@ -226,7 +226,7 @@ run-$(1): $(OBJDIR)/$(1)
@echo; echo "###### Running " $(1) "######"; echo
$(LD_LIB_PATH) $(RUN_PREFIX) $(OBJDIR)/$(strip $1) $(RUN_ARGS)
valg-$(1): $(OBJDIR)/$(1)
@echo; echo "###### Running " $(1) " (valgrind) ######"; echo
@echo; echo "###### Running " $(1) " (valgrind) ######"; echo
$(LD_LIB_PATH) VALG=1 $(RUN_PREFIX) ./valgrind_runner.sh $(OBJDIR)/$(strip $1) $(RUN_ARGS)
endef

Expand All @@ -246,7 +246,6 @@ run-$(1): $(OBJDIR)/$(1)
@echo; echo "###### Running " $(1) "######"; echo
$(LD_LIB_PATH) $(RUN_PREFIX) $(OBJDIR)/$(strip $1) $(RUN_ARGS)
valg-$(1): $(OBJDIR)/$(1)
@echo; echo "###### Running " $(1) " (valgrind) ######"; echo
@echo; echo "###### Running " $(1) " (valgrind) ######"; echo
$(LD_LIB_PATH) VALG=1 $(RUN_PREFIX) ./valgrind_runner.sh $(OBJDIR)/$(strip $1) $(RUN_ARGS)
endef

11 changes: 8 additions & 3 deletions README.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ Compilation:
NOTE:
You may need to edit the "Configuration section" of Makefile.base
for specific locations and options on your platform.

For building on RHEL7 the following will help:
sudo yum install git gcc\* openssl-devel readline-devel cppunit-devel

If you have yum groups configured correctly:
sudo yum group install "Development Tools"
sudo yum group install "Development Tools"
sudo yum install git openssl-devel readline-devel cppunit-devel rpm-build


Troubleshooting:
If you see errors "mdbm_*: error while loading shared libraries: libmdbm.so:
cannot open shared object file: No such file or directory" while running MDBM
command line tools, define the shell variable LD_LIBRARY_PATH to include the
directory where the library is installed. For example, define
"LD_LIBRARY_PATH="/usr/local/lib64/" in ~/.bashrc.