Re: [Tiki-users] Errors with setup.sh in Tiki 27 RC1 from git

Bernard Sfez via TikiWiki-users <[email protected]> Sat, 15 Jun 2024 08:23:58 +0200
Newsgroups gmane.comp.cms.tiki.user
Message-ID <[email protected]>
--===============8762454417350976904==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_CF7A7927-B549-48D6-8065-0DD75251BD47"


--Apple-Mail=_CF7A7927-B549-48D6-8065-0DD75251BD47
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hello Volker,

Seems we all have our little fight to adapt to Tiki27 till we can enjoy =
the awesome improvements there is there. =F0=9F=98=87

This is a work in progress (and it will be till Tiki stabilizes), but I =
wrote down how I solved the issues on my end:
https://www.bernardsfez.com/article95-How-to-upgrade-to-Tiki-27

Hope this helps,
Bernard



> On 14 Jun 2024, at 17:47, Jonny Bradley via TikiWiki-users =
<[email protected]> wrote:
>=20
>>=20
>> On 14 Jun 2024, at 16:10, Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> wrote:
>>=20
>> Am Freitag, dem 14.06.2024 um 15:18 +0100 schrieb Jonny Bradley via
>> TikiWiki-users:
>>> Hi Volker
>>>=20
>>> Yes, Tiki now needs a build process if you're using it from git - =
the daily and release tarballs don't, so maybe try 27.0 RC1 - tarballs =
here: =
https://sourceforge.net/projects/tikiwiki/files/Tiki_27.x_Miaplacidus/27.0=
RC1/
>>=20
>> Is this build process documented anywhere? (apart from
>> https://dev.tiki.org/The-Tiki-27-plus-Build-System)
>>=20
>> I'm considering to try to build a wiki dump feature by myself. So I =
need the
>> git version.
>>=20
>>>=20
>>> Your setup seems to fail with:
>>>=20
>>>>   =E2=80=A2 ERROR: "checkEnvironment" exited with 1.
>>>=20
>>> ...so that'll be the place to look for more info, but in the mean =
time, what is your environment?
>>=20
>> My environment is Ubuntu Linux 22.04 LTS with PHP 8.2.8, Node.js =
21.7.3, npm
>> 10.5.0, MariaDB 8.0.37.
>=20
> I'm not totally up to speed with all this but from package.json:43 it =
looks like your node and npm are in range - not sure how to check =
further what's broken, maybe ask (probably Benoit) on gitter? =
http://tiki.org/chat
>=20
> jb
>=20
>=20
>>=20
>>> Thanks for having a go, and thanks for the feedback!
>>=20
>> Bye,
>> Volker
>>=20
>>>=20
>>> jonny
>>>=20
>>>=20
>>>=20
>>>> On 14 Jun 2024, at 11:58, Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> wrote:
>>>>=20
>>>> Hi.
>>>>=20
>>>> I've followed these pages:
>>>>=20
>>>> https://doc.tiki.org/Tiki27
>>>> https://dev.tiki.org/The-Tiki-27-plus-Build-System
>>>>=20
>>>> It says that Node.js is now needed for running setup.sh. I've =
installed the
>>>> right version (from the snap) and get:
>>>>=20
>>>> desktop ~ $ node --version
>>>> v21.7.3
>>>> desktop ~ $ npm --version
>>>> 10.5.0
>>>>=20
>>>> I'm still unable to run setup.sh. Chosing "b", I got a long list of =
errors
>>>> like this:
>>>>=20
>>>> Class Text_Wiki_Render_Tiki_AllTests located in=20
>>>> =
./vendor/pear/text_wiki_mediawiki/tests/Text_Wiki_Render_Tiki_Tests.php
>>>> does not comply with psr-0 autoloading standard. Skipping.
>>>>=20
>>>> And like this:
>>>>=20
>>>> PHP Warning:
>>>> =
file_get_contents(vendor/thomaspark/bootswatch/dist/materia/bootstrap.min.=
cs
>>>> s): Failed to open stream: No such file or directory in
>>>> /var/www/html/tikisp/vendor_bundled/vendor/jason-
>>>> munro/cypht/scripts/config_gen.php on line 336
>>>>=20
>>>> I've uploaded the full log (setup.log) to Pastebin:
>>>> https://pastebin.com/T3XZMQVP
>>>>=20
>>>> Near the end there is reported a (different?) issue:
>>>>=20
>>>> ---
>>>> Running node install and build
>>>> + npm install --clean-install --engine-strict
>>>>=20
>>>> removed 40 packages, and audited 409 packages in 2s
>>>>=20
>>>> 88 packages are looking for funding
>>>> run `npm fund` for details
>>>>=20
>>>> 1 high severity vulnerability
>>>>=20
>>>> To address all issues, run:
>>>> npm audit fix
>>>>=20
>>>> Run `npm audit` for details.
>>>> ---
>>>>=20
>>>> I've done this ("npm audit fix") and it looks like that fixed the =
issue. But
>>>> now I get a lot of errors again, when chosing "b":
>>>>=20
>>>> $ sh setup.sh  -p php8.2  2>&1| tee /tmp/setup1.log
>>>>=20
>>>> I've uploaded the setup1.log to Pastebin as well:
>>>> https://pastebin.com/c65vaMd3
>>>>=20
>>>> Cheers,
>>>> Volker
>>>>=20
>>>>=20
>>>> _______________________________________________
>>>> TikiWiki-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
>>>=20
>>>=20
>>>=20
>>> _______________________________________________
>>> TikiWiki-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
>>=20
>>=20
>>=20
>> _______________________________________________
>> TikiWiki-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
>=20
>=20
>=20
>=20
> _______________________________________________
> TikiWiki-users mailing list
> [email protected] =
<mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users


--Apple-Mail=_CF7A7927-B549-48D6-8065-0DD75251BD47
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;">Hello =
Volker,<div><br></div><div>Seems we all have our little fight to adapt =
to Tiki27 till we can enjoy the awesome improvements there is there. =
=F0=9F=98=87</div><div><br></div><div>This is a work in progress (and it =
will be till Tiki stabilizes), but I wrote down how I solved the issues =
on my =
end:</div><div>https://www.bernardsfez.com/article95-How-to-upgrade-to-Tik=
i-27</div><div><br></div><div>Hope this =
helps,</div><div>Bernard</div><div><br></div><div><br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On 14 Jun 2024, at 17:47, Jonny Bradley via =
TikiWiki-users &lt;[email protected]&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div><meta =
charset=3D"UTF-8"><blockquote type=3D"cite" style=3D"font-family: =
Helvetica; font-size: 14px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br class=3D"Apple-interchange-newline">On 14 =
Jun 2024, at 16:10, Volker Wysk &lt;post-hhF2Jplw28UoZk/[email protected]&gt; =
wrote:<br><br>Am Freitag, dem 14.06.2024 um 15:18 +0100 schrieb Jonny =
Bradley via<br>TikiWiki-users:<br><blockquote type=3D"cite">Hi =
Volker<br><br>Yes, Tiki now needs a build process if you're using it =
from git - the daily and release tarballs don't, so maybe try 27.0 RC1 - =
tarballs here: =
https://sourceforge.net/projects/tikiwiki/files/Tiki_27.x_Miaplacidus/27.0=
RC1/<br></blockquote><br>Is this build process documented anywhere? =
(apart =
from<br>https://dev.tiki.org/The-Tiki-27-plus-Build-System)<br><br>I'm =
considering to try to build a wiki dump feature by myself. So I need =
the<br>git version.<br><br><blockquote type=3D"cite"><br>Your setup =
seems to fail with:<br><br><blockquote type=3D"cite">&nbsp;&nbsp;=E2=80=A2=
 ERROR: "checkEnvironment" exited with 1.<br></blockquote><br>...so =
that'll be the place to look for more info, but in the mean time, what =
is your environment?<br></blockquote><br>My environment is Ubuntu Linux =
22.04 LTS with PHP 8.2.8, Node.js 21.7.3, npm<br>10.5.0, MariaDB =
8.0.37.<br></blockquote><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><span style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;">I'm not =
totally up to speed with all this but from package.json:43 it looks like =
your node and npm are in range - not sure how to check further what's =
broken, maybe ask (probably Benoit) on gitter?<span =
class=3D"Apple-converted-space">&nbsp;</span></span><a =
href=3D"http://tiki.org/chat" style=3D"font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: 400; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;">http://tiki.org/chat</a><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><span style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline =
!important;">jb</span><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><blockquote type=3D"cite" style=3D"font-family: =
Helvetica; font-size: 14px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br><blockquote type=3D"cite">Thanks for having =
a go, and thanks for the =
feedback!<br></blockquote><br>Bye,<br>Volker<br><br><blockquote =
type=3D"cite"><br>jonny<br><br><br><br><blockquote type=3D"cite">On 14 =
Jun 2024, at 11:58, Volker Wysk &lt;post-hhF2Jplw28UoZk/[email protected]&gt; =
wrote:<br><br>Hi.<br><br>I've followed these =
pages:<br><br>https://doc.tiki.org/Tiki27<br>https://dev.tiki.org/The-Tiki=
-27-plus-Build-System<br><br>It says that Node.js is now needed for =
running setup.sh. I've installed the<br>right version (from the snap) =
and get:<br><br>desktop ~ $ node --version<br>v21.7.3<br>desktop ~ $ npm =
--version<br>10.5.0<br><br>I'm still unable to run setup.sh. Chosing =
"b", I got a long list of errors<br>like this:<br><br>Class =
Text_Wiki_Render_Tiki_AllTests located in<span =
class=3D"Apple-converted-space">&nbsp;</span><br>./vendor/pear/text_wiki_m=
ediawiki/tests/Text_Wiki_Render_Tiki_Tests.php<br>does not comply with =
psr-0 autoloading standard. Skipping.<br><br>And like this:<br><br>PHP =
Warning:<br>file_get_contents(vendor/thomaspark/bootswatch/dist/materia/bo=
otstrap.min.cs<br>s): Failed to open stream: No such file or directory =
in<br>/var/www/html/tikisp/vendor_bundled/vendor/jason-<br>munro/cypht/scr=
ipts/config_gen.php on line 336<br><br>I've uploaded the full log =
(setup.log) to Pastebin:<br>https://pastebin.com/T3XZMQVP<br><br>Near =
the end there is reported a (different?) issue:<br><br>---<br>Running =
node install and build<br>+ npm install --clean-install =
--engine-strict<br><br>removed 40 packages, and audited 409 packages in =
2s<br><br>88 packages are looking for funding<br>run `npm fund` for =
details<br><br>1 high severity vulnerability<br><br>To address all =
issues, run:<br>npm audit fix<br><br>Run `npm audit` for =
details.<br>---<br><br>I've done this ("npm audit fix") and it looks =
like that fixed the issue. But<br>now I get a lot of errors again, when =
chosing "b":<br><br>$ sh setup.sh &nbsp;-p php8.2 &nbsp;2&gt;&amp;1| tee =
/tmp/setup1.log<br><br>I've uploaded the setup1.log to Pastebin as =
well:<br>https://pastebin.com/c65vaMd3<br><br>Cheers,<br>Volker<br><br><br=
>_______________________________________________<br>TikiWiki-users =
mailing =
list<br>[email protected]<br>https://lists.sourceforge.=
net/lists/listinfo/tikiwiki-users<br></blockquote><br><br><br>____________=
___________________________________<br>TikiWiki-users mailing =
list<br>[email protected]<br>https://lists.sourceforge.=
net/lists/listinfo/tikiwiki-users<br></blockquote><br><br><br>____________=
___________________________________<br>TikiWiki-users mailing =
list<br>[email protected]<br>https://lists.sourceforge.=
net/lists/listinfo/tikiwiki-users<br></blockquote><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline =
!important;">_______________________________________________</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;">TikiWiki-users mailing list</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><a =
href=3D"mailto:[email protected]" style=3D"font-family:=
 Helvetica; font-size: 14px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;">[email protected]</a><br style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: =
normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><a =
href=3D"https://lists.sourceforge.net/lists/listinfo/tikiwiki-users" =
style=3D"font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: =
0px;">https://lists.sourceforge.net/lists/listinfo/tikiwiki-users</a></div=
></blockquote></div><br></div></body></html>=

--Apple-Mail=_CF7A7927-B549-48D6-8065-0DD75251BD47--


--===============8762454417350976904==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============8762454417350976904==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users

--===============8762454417350976904==--