WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LAMP environment  (Read 19928 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: LAMP environment
« Reply #90 on: May 02, 2022, 09:00:28 AM »
see attached

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #91 on: May 02, 2022, 09:07:16 AM »
Thanks juanito,

But in the file you attached are you sure you can remove files by doing this
Code: [Select]
vi files [remove those that do not belong]
Why don't we use rm here ?
It's fine

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: LAMP environment
« Reply #92 on: May 02, 2022, 09:09:08 AM »
The file named "files" contains a list of files created after the timestamp "mymarker", you need to edit the list to remove the files that are not required.

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #93 on: May 02, 2022, 09:11:47 AM »
Do I need to do it manually or it's in the next command ?
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #94 on: May 02, 2022, 09:14:06 AM »
Ok so i need to remove all the files that doesn't belong to the extension
Am I right?
It's fine

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: LAMP environment
« Reply #95 on: May 02, 2022, 09:16:30 AM »
affirmative - if you are going to submit an extension, you need to make libonig and libonig-dev

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #96 on: May 02, 2022, 09:18:05 AM »
what files are needed for an extension-dev and an extension
Because I don't see the difference between them
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: LAMP environment
« Reply #97 on: May 02, 2022, 09:20:12 AM »
Hi MrToga
Code: [Select]
vi files [remove those that do not belong]vi  is the name of an editor that can be used from the command line. I prefer a GUI based editor myself.
files  is the name of a file that contains a list of file names. files.txt or files.list would have been more obvious.
You need to manually remove any file names from that list that don't belong to the extension.
« Last Edit: May 02, 2022, 09:22:04 AM by Rich »

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #98 on: May 02, 2022, 09:25:35 AM »
Ok so my fault but I found out you can use make install DESTDIR=$PATH for onig and i get this tree :
onig/
usr/
local/
bin/                  include/                             lib/
Onig-config       oniggnu.h oniguruma.h       (.a .so .la and pkgconfig directory)


What I need to put in my onig-dev and my onig ?
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: LAMP environment
« Reply #99 on: May 02, 2022, 09:35:10 AM »
Hi MrToga
Congratulations on finding  DESTDIR=$PATH.  You just made your life easier.
The following belong in  -dev:
usr/local/bin/onig-config
usr/local/include/*
usr/local/lib/*.a
usr/local/lib/*.la
usr/local/lib/pkconfig/*

Something like this:
http://tinycorelinux.net/10.x/x86/tcz/libonig-dev.tcz.list

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #100 on: May 03, 2022, 05:57:18 AM »
Hi,

I'm trying to install mariadb with this version (http://www.tinycorelinux.net/8.x/armv6/tcz/src/mariadb/ ) and now I'm trying to compile it but when I do the
Code: [Select]
cmake .
I get an error (Attached file) that said that I don't have CURSE so i tried to install ncurse-dev (link : http://tinycorelinux.net/13.x/armv6/tcz/) on my rpi but still have the same error.

Any toughts ?
It's fine

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: LAMP environment
« Reply #101 on: May 03, 2022, 06:16:05 AM »
Earlier versions of cmake had a lot of problems detecting ncurses.

You can check if you have ncurses and ncurses-dev loaded with:
Code: [Select]
tce-status -i | grep ncurses
If you run the command "cmake -LAH --blah --blah" it will output a list of configure switches - perhaps one of them might allow you to tell cmake where the ncurses headers and libraries are?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: LAMP environment
« Reply #102 on: May 03, 2022, 06:29:55 AM »
Try this:
Code: [Select]
-DCURSES_CURSES_LIBRARY=/usr/local/lib/libncurses.so -DCURSES_FORM_LIBRARY=/usr/local/lib/libform.so -DCURSES_INCLUDE_PATH=/usr/local/include -DCURSES_NCURSES_LIBRARY=/usr/local/lib/libncurses.so

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #103 on: May 03, 2022, 07:00:08 AM »
Hi juanito,

After I run this command
Quote
-DCURSES_CURSES_LIBRARY=/usr/local/lib/libncurses.so -DCURSES_FORM_LIBRARY=/usr/local/lib/libform.so -DCURSES_INCLUDE_PATH=/usr/local/include -DCURSES_NCURSES_LIBRARY=/usr/local/lib/libncurses.so
It said that it didn't find libcurses.so
So I searched in /usr/local/lib to see if I have something with curses in it and i've got this :
libncurses++w.so
libncurses++w.so.6
libncurses++w.so.6.2
libncursesw.so
libncursesw.so.6
libncursesw.so.6.2
So I was wondering wich one should I used ?
« Last Edit: May 03, 2022, 07:23:13 AM by MrToga »
It's fine

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: LAMP environment
« Reply #104 on: May 03, 2022, 07:41:46 AM »
Ah, sorry I was ssh'd into piCore, but looked on the local machine..

Try:
Code: [Select]
-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