WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LAMP environment  (Read 20215 times)

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #120 on: May 03, 2022, 10:24:10 AM »
Hi Rich,

Yes I just put my mariadb repertory from /home/tc in /mnt/mmblk0p2 that's why I get another space error but now I decompressed my mariadb in /mnt/mmblk0p2 and do my
Code: [Select]
sudo cmake \-DCURSES_CURSES_LIBRARY=/usr/local/lib/libncursesw.so \-DCURSES_FORM_LIBRARY=/usr/local/lib/libformw.so \-DCURSES_INCLUDE_PATH=/usr/local/include/ncursesw \-DCURSES_NCURSES_LIBRARY=/usr/local/lib/libncursesw.so and when I do the sudo make I get another error because the make command try to download pcre2-10.34.zip from this link : http://ftp.pcre.org/pub/pcre/pcre2-10.34.zip
But can't get it and i get in return this error :
Code: [Select]
error: downloading 'http://ftp.pcre.org/pub/pcre/pcre2-10.34.zip' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
-- LOG BEGIN --
Could not resolve host: fpt.pcre.org
Closing connection 0

-- LOG END --
« Last Edit: May 03, 2022, 10:26:26 AM by MrToga »
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11667
Re: LAMP environment
« Reply #121 on: May 03, 2022, 10:32:38 AM »
Hi MrToga
Is  pcre2-dev.tcz  installed?

Also, this link that juanito posted provides some clues in the  cmake  section:
http://tinycorelinux.net/7.x/x86_64/tcz/src/mariadb/build-mariadb-10.1.sh

It includes the following:
Code: [Select]
-DWITH_PCRE=system

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #122 on: May 03, 2022, 10:49:13 AM »
Hi Rich,

After running your command He still can't find pcre2-8
I get this error :
system pcre2-8 library is not found or unusable

But when I search pcre2-8 I found it in /usr/local/lib/libpcre2-8.so

I also tried to do
Code: [Select]
-DWITH_PCRE=/usr/local/lib/libpcre2-8.soBut he still try to download pcre2-10.34.zip
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11667
Re: LAMP environment
« Reply #123 on: May 03, 2022, 10:57:34 AM »
Hi MrToga
If that's going to work, you might have to tell  it where, not what, like this:
Code: [Select]
-DWITH_PCRE=/usr/local/lib/

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: LAMP environment
« Reply #124 on: May 03, 2022, 11:51:06 AM »
I don't think that will work:
Code: [Select]
// Which pcre to use (possible values are 'bundled', 'system', or 'auto')
WITH_PCRE:STRING=auto

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11667
Re: LAMP environment
« Reply #125 on: May 03, 2022, 02:31:01 PM »
Hi Juanito
Well sure, if you're going to look at the source, of course you'll get it right.  :)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: LAMP environment
« Reply #126 on: May 04, 2022, 04:50:04 AM »
I updated cmake in case that was causing the problem - mariadb-10.5.8 configures for me:
Code: [Select]
cmake -LAH -DCMAKE_BUILD_TYPE=Release -DFEATURE_SET=xsmall -DMRN_GROONGA_EMBED=OFF -DWITH_SSL=system -DWITH_ZLIB=system -DWITH_PCRE=system -DWITH_READLINE=system -DWITH_EMBEDDED_SERVER=OFF -DMYSQL_MAINTAINER_MODE=OFF -DWITH_SYSTEMD=no -DMYSQL_DATADIR=/home/tc/mysql/data -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_CXX_FLAGS_RELEASE="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -DNDEBUG" -DCMAKE_C_FLAGS_RELEASE="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -DNDEBUG" -DCURSES_CURSES_LIBRARY=/usr/local/lib/libncursesw.so -DCURSES_FORM_LIBRARY=/usr/local/lib/libformw.so -DCURSES_INCLUDE_PATH=/usr/local/include -DCURSES_NCURSES_LIBRARY=/usr/local/lib/libncursesw.so ../
..using groonga-CMakeLists.txt.patch and editing libmariadb/cmake/ConnectorName.cmake line 25 to read ENDIF()
« Last Edit: May 04, 2022, 04:58:31 AM by Juanito »

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #127 on: May 04, 2022, 05:34:45 AM »
Hi,

After I add juanito's command in my cmake  like this :
Code: [Select]
sudo cmake \-DCURSES_CURSES_LIBRARY=/usr/local/lib/libncursesw.so \-DCURSES_FORM_LIBRARY=/usr/local/lib/libformw.so \-DCURSES_INCLUDE_PATH=/usr/local/include/ncursesw \-DCURSES_NCURSES_LIBRARY=/usr/local/lib/libncursesw.so \-WITH_PCRE:STRING=autoand I install curl-dev.
I'm currently doing the make and it's seem to keep going, he doesn't try to download pcre2 anymore
« Last Edit: May 04, 2022, 05:39:10 AM by MrToga »
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11667
Re: LAMP environment
« Reply #128 on: May 04, 2022, 10:03:32 AM »
Hi MrToga
If you are putting everything on 1 line, you should not include the  \  character.

Placing it at the end of a line like this tells the system "ignore this carriage return, I'm not done":
Code: [Select]
sudo cmake \
-DCURSES_CURSES_LIBRARY=/usr/local/lib/libncursesw.so \
-DCURSES_FORM_LIBRARY=/usr/local/lib/libformw.so \
-DCURSES_INCLUDE_PATH=/usr/local/include/ncursesw \
-DCURSES_NCURSES_LIBRARY=/usr/local/lib/libncursesw.so \
-WITH_PCRE:STRING=auto

Placing the  \  character anyplace else has a completely different meaning and can change the outcome of your command.

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #129 on: May 05, 2022, 03:29:37 AM »
Hi guys,

After removing all the \ characters from my previous command and done à sudo make I get an error at the end of the make

Here the attached file
I also find out that in my mariadb/client/mysql.cc there is a line where the error occurs is :
Code: [Select]
static void my_vidattr(chtype attrs)
{
  if (have_curses)
      vidattr(attrs);
}

Maybe my ncurses.tcz is outdated ?
Any toughts ?

[attachment deleted by admin]
« Last Edit: May 05, 2022, 03:46:54 AM by MrToga »
It's fine

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: LAMP environment
« Reply #130 on: May 05, 2022, 04:50:04 AM »
I gave it a try and the build failed at 97% done with:
Code: [Select]
mariadb-10.5.8/client/mysql.cc:105:13: error: variable or field 'my_vidattr' declared void
  105 | static void my_vidattr(chtype attrs)

I'd guess this is something to do with -std=gnu++11, gcc and the code used.

You could try a more recent version of mariadb?

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #131 on: May 05, 2022, 04:56:06 AM »
Where can I found an newer version it doesn't seem to be a newer version for tiny core
« Last Edit: May 05, 2022, 04:58:47 AM by MrToga »
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #132 on: May 05, 2022, 05:12:22 AM »
I found where I can download some newer version of mariadb : https://mariadb.com/kb/en/mariadb-server-10-7-3/
I'm gonna try it with the 10.7.3 version
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #133 on: May 06, 2022, 03:25:29 AM »
Update :

I still have the same error with the version 10.7.3
It's fine

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: LAMP environment
« Reply #134 on: May 06, 2022, 03:32:22 AM »
At 74% I get
Code: [Select]
/usr/local/bin/ld: ../lib/libgroonga.so: undefined reference to `provider_service_lz4_static'
collect2: error: ld returned 1 exit status