Problem compiling nginx on Solaris 10 - nginx

My setup as below
# export PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin
# ./configure --prefix=/usr/local/nginx --user=webservd --group=webservd --with-http_stub_status_module --with-openssl=/usr/local/ssl/bin/openssl --with-debug --with-pcre=/usr/local/bin
and i get error code as such when i execute make
# make
make -f objs/Makefile
make[1]: Entering directory `/export/home/myhome/nginx-0.7.63'
cd /usr/local/bin \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: ./configure: not found
make[1]: *** [/usr/local/bin/Makefile] Error 1
make[1]: Leaving directory `/export/home/myhome/nginx-0.7.63'
make: *** [build] Error 2
any idea how to fix it?

That initial cd to /usr/local/bin looks very strange; are you building it in the global /usr tree?
It looks as if it's cd:ing to the wrong directory, for some reason. Look in the referenced Makefile (objs/Makefile) and try to figure out why.
UPDATE: It seems the problem is that it's trying to build the PCRE library. If you have it pre-built, that seems like an odd decision. This blog post suggests using the --with-cc-opt="-I /usr/include/pcre" option to point out to the configure script where you have headers for PCRE, might be worth trying.

Related

Adding Styles to PySide2

Is it possible to add styles for PySide2, Currently i just have "fusion", "windows", "windowsvista". I wanted to fetch more styles.
I followed steps from 63477276 and 39201227.
After looking into those questions, there are actually more than just 3 predefined styles in qt but we need to manually fetch them, i was trying to fetch those
cd src\ && ( if not exist Makefile C:\mingw\bin\qmake.exe Tests\qtstyleplugins\src\src.pro -o Makefile ) && C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -f Makefile
make[1]: Entering directory 'Tests/qtstyleplugins/src'
cd plugins\ && ( if not exist Makefile C:\mingw\bin\qmake.exe Tests\qtstyleplugins\src\plugins\plugins.pro -o Makefile ) && C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -f Makefile
make[2]: Entering directory 'Tests/qtstyleplugins/src/plugins'
cd platformthemes\ && ( if not exist Makefile C:\mingw\bin\qmake.exe Tests\qtstyleplugins\src\plugins\platformthemes\platformthemes.pro -o Makefile ) && C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -f Makefile
make[3]: Entering directory 'Tests/qtstyleplugins/src/plugins/platformthemes'
make[3]: Nothing to be done for 'first'.
make[3]: Leaving directory 'Tests/qtstyleplugins/src/plugins/platformthemes'
cd styles\ && ( if not exist Makefile C:\mingw\bin\qmake.exe Tests\qtstyleplugins\src\plugins\styles\styles.pro -o Makefile ) && C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -f Makefile
make[3]: Entering directory 'Tests/qtstyleplugins/src/plugins/styles'
cd cleanlooks\ && ( if not exist Makefile C:\mingw\bin\qmake.exe Tests\qtstyleplugins\src\plugins\styles\cleanlooks\cleanlooks.pro -o Makefile ) && C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -f Makefile
Project ERROR: No module claims plugin type 'styles'
make[3]: *** [Makefile:41: sub-cleanlooks-make_first] Error 3
make[3]: Leaving directory 'Tests/qtstyleplugins/src/plugins/styles'
make[2]: *** [Makefile:65: sub-styles-make_first] Error 2
make[2]: Leaving directory 'Tests/qtstyleplugins/src/plugins'
make[1]: *** [Makefile:39: sub-plugins-make_first] Error 2
make[1]: Leaving directory 'Tests/qtstyleplugins/src'
make: *** [Makefile:39: sub-src-make_first] Error 2
With that step, i was not able to convert .cpp to .dll files (for windows)
version: 5.15.2
os: windows
before that step, i cloned repo from code.qt
Is there any other way to add styles for pyside2.

Problems installing emacs ESS using make

I am trying to install emacs ESS using GNU make.
i follow the installation instructions for ESS found in the following
link:
steps 2 and 3 :
http://ess.r-project.org/Manual/ess.html#Installation
for each step i get errors when using make:
below are the instructions and the error messages for each step:
First Instruction:
Optionally, compile elisp files and build the documentation with:
cd /path/to/ESS/
make
Without this step, info, pdf and html documentation and reference card will not be available.
My Action:
C:\Program Files\ESS\ess-17.11>make
System Messages:
cd etc; make all
make[1]: Entering directory `/cygdrive/c/Program Files/ESS/ess-17.11/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/Program Files/ESS/ess-17.11/etc'
cd lisp; make all
make[1]: Entering directory `/cygdrive/c/Program Files/ESS/ess-17.11/lisp'
emacs -batch -no-site-file -no-init-file -l ./ess-comp.el -f batch-byte-compile ess-custom.el
emacs: not found
make[1]: [ess-custom.elc] Error 127
make[1]: Leaving directory `/cygdrive/c/Program Files/ESS/ess-17.11/lisp'
make: [all] Error 2
Second Instruction:
Optionally, install into your local machine with make install. You might need administrative privileges:
make install
The files are installed into /usr/share/emacs directory. For this step to run correctly on macOS, you will need to adjust the PREFIX path in Makeconf. The necessary code and instructions are commented in that file.
My Action:
C:\Program Files\ESS\ess-17.11>make install
System Messages:
cd etc; make install
make[1]: Entering directory `/cygdrive/c/Program Files/ESS/ess-17.11/etc'
mkdir -p /usr/share/emacs/etc/ess/icons
mkdir -p /usr/share/emacs/etc/ess/ESSR/R
cp -p .IS.RELEASE git-ref *.S sas-keys.* ess-sas-sh-command *.jl /usr/share/emacs/etc/ess
cp -p icons/*.xpm /usr/share/emacs/etc/ess/icons
cp -p ESSR/LOADREMOTE ESSR/VERSION /usr/share/emacs/etc/ess/ESSR
cp -p ESSR/R/*.R ESSR/R/.*.R /usr/share/emacs/etc/ess/ESSR/R
chmod +x /usr/share/emacs/etc/ess/ess-sas-sh-command
chmod: not found
make[1]: *** [install] Error 127
make[1]: Leaving directory `/cygdrive/c/Program Files/ESS/ess-17.11/etc'
make: *** [install] Error 2
I'll appreciate you help with installing ESS using make.
Thanks
Rafael
You are trying to execute under Windows commands, which are for Linux environments.
Specifically, your installation fails at the following lines:
emacs -batch -no-site-file -no-init-file -l ./ess-comp.el -f batch-byte-compile ess-custom.el
emacs: not found
and
chmod +x /usr/share/emacs/etc/ess/ess-sas-sh-command
chmod: not found
There is no chmod command under Windows. Here is the cmd equivalent: https://www.cyberciti.biz/tips/windows-change-access-permissions-from-the-command-line.html
The ESS Manual you provided suggests the following approach:
Note for Windows and macOS users: The most straightforward way to
install Emacs on your machine is by downloading the Emacs binary by
Vincent Goulet; either Emacs Modified for macOS or from Emacs Modified
for Windows.
I also suggest that you install the Emacs Modified for Windows, as installation via make under windows will be too difficult/costly - virtually impossible.

recompile NGINX with upgraded openssl

I am trying to recompile my NGINX with upgraded version of openssl using below command.
./configure --with-openssl=/usr/local/src/openssl --with-http_realip_module --with-http_ssl_module --with-stream --with-stream_ssl_module --with-http_slice_module
on runnng make I am gettng following error.
Makefile is older than Makefile.org, Configure or config. Reconfigure
the source tree (via './config' or 'perl Configure'), please. make[2]:
* [Makefile] Error 1 make[2]: Leaving directory `/usr/local/src/openssl' make[1]: *
[/usr/local/src/openssl/.openssl/include/openssl/ssl.h] Error 2
Please suggest.
Try to remove Makefile from openssl folder.
rm /usr/local/src/openssl/Makefile
For me this error came after i changed my system's timezone to invalid timezone by mistake.
Please "Check your system clock

Why is it compiling file twice

I have a makefile
jumbo: objs/jumbo.o objs/utils.o
objs/%.o: %.C
$(CXX) $(CFLAGS) $(CPPFLAGS) -c -o $# $<
The result of the compile
g++ jumbo.C objs/jumbo.o objs/utils.o -o jumbo
objs/jumbo.o:jumbo.C:(.text+0x0): multiple definition of `main'
/tmp/ccwEFt9o.o:jumbo.C:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [<builtin>: server] Error 1
if I replace the definition of jumbo
jumbo: jumbo.C objs/utils.o
the problem goes away but the object file is not put away in the objs directory
And I don't know whether it is recompiling jumbo or not when it should only be relinking
You haven't defined any recipe for building the target jumbo. Because of that, make looks for a built-in rule and there is one that knows how to build a file X from a file X.C. Make looks at the directory and lo and behold, there's an X.C (jumbo.C) that exists, so make chooses to use that built-in rule. The built-in rule is:
%: %.C
$(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $#
so, since jumbo depends on objs/jumbo. and objs/utils.o directory plus the jumbo.C from the default implicit rule, you get all three on the command line.
To fix this just define your own recipe for creating jumbo:
jumbo: objs/jumbo.o objs/utils.o
$(LINK.C) $^ $(LOADLIBES) $(LDLIBS) -o $#

what is wrong with my makefile code?

I have a makefile that I needed to change around, and use it to install the program. I can;t figure out why I am getting this error:
v245-2% make install
install -m 555 audit /export/home/student/scort323/bin
sh: install: not found
*** Error code 1
make: Fatal error: Command failed for target `install'
Below is my code, can somebody please give me some advice. I am not good at makefiles so trying to find this error is hard for me until I get a better understanding:
# Make file for audit
# Location to install binary. Default is /usr/local/bin. You may
# prefer to install it in /usr/bin or /sbin
BINDIR = /export/home/student/scort323/bin
#BINDIR=/usr/bin
#BINDIR=/usr/sbin
# Location to install man page. Default is /usr/local/man. You may
# prefer to install it in /usr/man
MANDIR = /export/home/student/scort323/bin
#MANDIR = /usr/man
# Compiler to use
CC = gcc
# Linker to use
LD = gcc
# Preprocessor options
CPPFLAGS = -DGETOPTLONG
# Compile and link options
# On a.out systems you might want to add -N when linking
# RPM_OPT_FLAGS can be set by rpm tool
# ...For production code
CFLAGS = -Wall -O3 $(RPM_OPT_FLAGS)
LDFLAGS = -s
# ...For debug
#CFLAGS = -Wall -g
#LDFLAGS = -g
audit: audit.o
$(LD) $(LDFLAGS) -o audit audit.o
audit.o: audit.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c audit.c
install: audit
install -m 555 audit $(BINDIR)
#/audit
install -m 444 audit.1 $(MANDIR)
#/man1/audit.1
clean:
$(RM) audit audit.o core *~ results
# check in
ci: clean
-ci -l *
dist: clean
cd .. ; tar --exclude RCS -czvf audit-0.2.tar.gz audit-0.2
There is no problem with the makefile. Check if you have install utility
$~ install --help
If you dont have then you can get it from GNU coreutils. If you have install somewhere then export its path in PATH variable
export PATH=$PATH:/path/to/install-utilit

Resources