WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LAMP environment  (Read 14509 times)

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #30 on: April 20, 2022, 07:26:24 AM »
I think I was missing the openssl-dev because after installing it i tried a ./apache2.4.build and it seem longer than the last attempts with the .build
I will tell you after it's finished
It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: LAMP environment
« Reply #31 on: April 20, 2022, 07:35:01 AM »
Hi MrToga
Hopefully that's the last piece of the puzzle. :)

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #32 on: April 20, 2022, 07:45:20 AM »
Ok so it's finished but I still miss something.
Because my apache2.4.tcz.list looks like this now
It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: LAMP environment
« Reply #33 on: April 20, 2022, 08:04:35 AM »
Hi MrToga
I suspect a compilation error, maybe a missing  .h  file. Lets see if running the build script like this catches the error:
Code: [Select]
./apache2.4.build > build.txt 2>&1
Attach  build.txt  to your next post.

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #34 on: April 21, 2022, 12:30:03 AM »
Hi
Here's the build.txt (was too big for the website so it's compressed)
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #35 on: April 21, 2022, 04:51:25 AM »
I found something while doing the compilation of apache manually I get a few error that said :

ab.c:(.text.startup+0x80c): undefined reference to `SSLv2_client_method'
/usr/local/bin/ld: ab.c:(.text.startup+0x8b8): undefined reference to `CRYPTO_malloc_init'
collect2: error: ld returned 1 exit status

And this are the same errors as in the file build.txt.
It's strange because i've done the compilaiton manually earlier and it worked.
How can I correct that?
« Last Edit: April 21, 2022, 04:59:15 AM by MrToga »
It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: LAMP environment
« Reply #36 on: April 21, 2022, 07:22:19 AM »
Hi MrToga
After some searching it appears the issue is openssl changed:
Quote
----- Snip -----
OpenSSL 1.0.2 and earlier provided CRYPTO_malloc_init:
 ----- Snip -----
OpenSSL 1.1.0 and later do not appear to provide CRYPTO_malloc_init:
 ----- Snip -----
Found here:
https://stackoverflow.com/a/40606758

openssl changed from  1.0.2j:
http://tinycorelinux.net/8.x/armv7/tcz/openssl.tcz.info
to  1.1.1l:
http://tinycorelinux.net/13.x/armv7/tcz/openssl.tcz.info

I would say you should try a newer source package. andyj maintains apache for the x86 repositories and he is
currently using version  2.4.46. I would follow his lead. The apache source packages can be found here:
http://archive.apache.org/dist/httpd/
I suggest downloading this:
http://archive.apache.org/dist/httpd/httpd-2.4.46.tar.bz2

The script is currently set up to compile version  2.4.23.  Edit the script and change that to  2.4.46 (2 places)

Make sure  the following extensions are installed:
apr-util-dev expat2-dev gdbm-dev openssl-dev pcre-dev

Try running the build script and see what pops up.

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #37 on: April 21, 2022, 07:48:58 AM »
Hi Rich,
So after using the script my apache2.4.tcz.list look like this but now the script doesn't create the apache2.4.tcz
It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: LAMP environment
« Reply #38 on: April 21, 2022, 07:56:55 AM »
Hi MrToga
At first glance, that appears to be a successful build. Do you have  squashfs-tools  installed?

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #39 on: April 21, 2022, 08:06:02 AM »
Yes it's already install but the error is :

mv : can' rename '../apache2.4.tcz/usr/local/lib/*.a' : No such file or directory
mv : can' rename '../apache2.4.tcz/usr/local/lib/*.ala : No such file or directory
mv : can' rename '../apache2.4.tcz/usr/local/lib/*.exp' : No such file or directory
mv : can' rename '../apache2.4.tcz/usr/local/lib/pkgconfig' : No such file or directory
mksquashfs: error while loading shared libraries: liblzo2.so.2: cannot open shared object file: no such file or directory
mv : can't rename '../apache2.4.tcz' : No such file or directory
md5sum : can't open '../apache2.4.tcz' : No such file or directory

same error goes for apache2.4.dev and .doc

Sorry I need to go have a nice day Rich and thanks for the help so far :)
It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: LAMP environment
« Reply #40 on: April 21, 2022, 08:14:40 AM »
Hi MrToga
... mksquashfs: error while loading shared libraries: liblzo2.so.2: cannot open shared object file: no such file or directory ...
lzo.tcz  is a dependency of  squashfs-tools.tcz  and should have been loaded with  squashfs-tools:
http://tinycorelinux.net/13.x/armv7/tcz/squashfs-tools.tcz.dep

Do you have a  squashfs-tools.tcz.dep  in your  tce/optional  directory whose contents match the above link?

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #41 on: April 22, 2022, 12:17:19 AM »
Hi Rich,

My squashfs-tools.tcz.dep have the same content than in the link
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #42 on: April 22, 2022, 01:01:35 AM »
Update :

It work I think I didn't install squashfs-tools.tcz but now apache is working and it's persistent.

It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: LAMP environment
« Reply #43 on: April 22, 2022, 05:44:37 AM »
Hi MrToga
So, are you saying the build script now completes correctly and creates the  apache2.4.tcz  file?

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #44 on: April 22, 2022, 05:53:15 AM »
Hi Rich,

Yes i've got apache2.4.tcz an it's persistent on my rasp
It's fine