On 2019-03-23 12:37 -0700, Pei Jia wrote:
> (blfs chroot) root:/sources/openssl-1.1.1b# ./config --prefix=/usr \
> > --openssldir=/etc/ssl \
> > --libdir=lib \
> > shared \
> > zlib-dynamic \
> > --verbose
> Operating system: x86_64-whatever-linux2
> Configuring OpenSSL version 1.1.1b (0x1010102fL) for linux-x86_64
> Using os-specific seed configuration
> Creating configdata.pm
> Creating Makefile
> sh: -I.: command not found
>
> As shown, sh has been successfully installed.
It's irrevelant. This error message means "sh" can not find a command "-I.".
This should come from openssl-1.1.1b/Configure:3161:
> my $cmd = "$perlcmd \"-I.\" \"-Mconfigdata\" \"$dofile\" -o\"Configure\"
> \"".join("\" \"",@templates)."\" > \"$out.new\"";
If $perlcmd somehow becomes an empty value the command will be:
` "-I." "-Mconfigdata" ... ...`
So "-I." will be regarded as a command. But I'm not a Perl programmer and I
can't imagine how could this happen.
> Seriously have NO idea where I did wrong...
You are building on a SD card? Don't tell me the CPU was an ARM... The
instruction in book only works for x86/x86_64.
Or maybe your Perl is broken.
> Anyway, I now ignore openssl and move forward....
Then you may find you can't build linux kernel (if some kernel options are
enabled). That's the reason openssl was moved from BLFS to LFS.
Do not continue blindly if you encounter any error. If you can find out the
reason, fix it. If you can't find or can't fix it, clear your LFS partition and
rebuild everything. Someone may think "oh, it wastes time to rebuild all
packages because only a single error!" That's wrong. Any error is very likely
to blow up the system later and then you have to waste more time.
--
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style