RE: Compiling apache from a script file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixed it, it was a stupid space after one of the '\' characters.

You would have thought that they'd be able to strip whitespaces off the end
of lines in this day and age.

*sigh*

-----Original Message-----
From: redhat-list-admin@xxxxxxxxxx
[mailto:redhat-list-admin@xxxxxxxxxx]On Behalf Of Stuart Stephen
Sent: 07 November 2003 16:55
To: redhat-list@xxxxxxxxxx
Subject: Compiling apache from a script file.


Hi all,

I wish to compile and install a list of things in a script file. I've
written a small function to install the apache server (2.0.48) and for some
reason this fails, however. If I try and run this command in the shell it
runs fine?

Why does it not work in the script, yet work from the shell?

Thanks
Stuart Stephen

The shell script snippet is below:
--- snippet of installserver.sh ---
installapache() {
  cd /root/httpd-2.0.48
  pwd

  # configure the server setup.
  ./configure \
     --prefix=/usr/local/apache2 \
     --enable-modules=all \
     --enable-ssl \
     --with-ssl=/usr/local/ssl/include/openssl \
     --enable-rule=SSL_EXPERIMENTAL \
     --enable-rule=SSL_VENDOR \
     --enable-shared=ssl \
     --with-mm=/root/mm-1.3.0 \
     --enable-jni \
     --enable-so
}
--- end of snippet ---

The output I get when running the script is:
--- start of script output ---
/root/httpd-2.0.48
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh build/config.sub   failed
/root/scripts/t2ut.install: --with-ssl=/usr/local/ssl/include/openssl: No
such file or directory
waiting 3 seconds.
--- end of script output --



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux