ср, 20 окт. 2021 г. в 21:59, Shariful Alam <dipto181@xxxxxxxxx>: > > Hello, > > I'm trying to install httpd-2.4.46 from the source. Usually, I use the following command to configure and it works fine, > > ~/Downloads/httpd-2.4.46$ CFLAGS='-DSSL_EXPERIMENTAL_ENGINE -DSSL_ENGINE -DOPENSSL_LOAD_CONF' LDFLAGS=-Wl,-rpath=/opt/openssl/lib ./configure --prefix=/etc/apache2 --enable-ssl --with-ssl=/opt/openssl/ --with-pcre=/usr/local/pcre --enable-so > > > Currently, I'm trying to link a third-party library while installing the httpd. using the following command, > > ~/Downloads/httpd-2.4.46$ CFLAGS='-DSSL_EXPERIMENTAL_ENGINE -DSSL_ENGINE -DOPENSSL_LOAD_CONF' LDFLAGS= -L./libxxx -Wl, -Bstatic -lxxx -Wl, -rpath=/opt/openssl/lib ./configure --prefix=/etc/apache2 --enable-ssl --with-ssl=/opt/openssl/ --with-pcre=/usr/local/pcre --enable-so > > > and it shows the following error, > > -bash: -L./libxxx: No such file or directory > > However, the "libxxx " directory presents in the same directory from where I'm running the above command. > Note that in your command line there is a whitespace just after "LDFLAGS=" and before its supposed value. A shell command may be preceded by a series of variable assignments. When the shell encounters the whitespace just after "LDFLAGS=" it interprets that it ends those assignments, and tries to execute "-L./libxxx" as the command. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01 Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx