LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-06-2022, 10:19 AM   #1
mbouzaie
LQ Newbie
 
Registered: Sep 2022
Posts: 4

Rep: Reputation: 0
Unhappy Qt install problem following BLFS 11.1


Hi,
Hi, I'm trying to install the QT5.15.2 package using the help of BLFS 11.1 book but it won't work. When i launch ./configure for the first time i get the error:
Quote:
You don't seem to have 'make' or 'gmake' in your PATH.
after looking for the error i got that i need to do and export of a MAKE variable. So i did
Code:
export MAKE=/usr/bin/make
no w when i do ./configure i get the next error:
Quote:
+ /sources/BLFS/qt-everywhere-src-5.15.2/qtbase/configure -top-level -prefix /opt/qt5 -sysconfdir /etc/xdg -confirm-license -opensource -dbus-linked -openssl-linked -system-harfbuzz -system-sqlite -nomake examples -no-rpath -syslog
-skip qtwebengine
Creating qmake...
// Blocked C code on cloudflare
...
: No such file or directory
/sources/BLFS/qt-everywhere-src-5.15.2/qtbase/configure: line 225: /*Blocked code on cloudflare*/: No such file or directory
/sources/BLFS/qt-everywhere-src-5.15.2/qtbase/configure: line 163:
...
make: c: No such file or directory
make: c: No such file or directory
make: c: No such file or directory
/bin/sh: ligne 1: o : command not found
Done.
/sources/BLFS/qt-everywhere-src-5.15.2/qtbase/configure: line 856: /sources/BLFS/qt-everywhere-src-5.15.2/qtbase/bin/qmake: No such file or directory
When i
Code:
make -v
i get
Quote:
GNU Make 4.3
Created for x86_64-pc-linux-gnu
and i don't see any x86_64-pc-linux-gnu in qtbase/mkspecs so until now i'm thinking the issue might be coming from there?
I also installed all the required and recommended packages.
Thanks in advance for the help!

Last edited by mbouzaie; 09-06-2022 at 10:23 AM.
 
Old 09-06-2022, 11:00 AM   #2
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 54

Rep: Reputation: Disabled
Did you complete the post-lfs config tasks?

https://www.linuxfromscratch.org/blf...fs/config.html

Iíve built Qt many many times using blfs jhalfs with no issues (just this weekend in fact)Ö

Last edited by wiigelec; 09-06-2022 at 11:02 AM.
 
Old 09-07-2022, 06:32 AM   #3
mbouzaie
LQ Newbie
 
Registered: Sep 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wiigelec View Post
Did you complete the post-lfs config tasks?

https://www.linuxfromscratch.org/blf...fs/config.html

Iíve built Qt many many times using blfs jhalfs with no issues (just this weekend in fact)Ö
I tried to redo it. It doesn't change the issue. I have a hunch that qt installation doesn't understand my BLFS architecture.
 
Old 09-07-2022, 09:05 PM   #4
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 54

Rep: Reputation: Disabled
I have a hunch it’s an issue with your build environment.

What does “which make” return?
 
Old 09-12-2022, 07:18 AM   #5
mbouzaie
LQ Newbie
 
Registered: Sep 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wiigelec View Post
I have a hunch itís an issue with your build environment.

What does ďwhich makeĒ return?
I had to install which first, it returns
Quote:
/usr/bin/make
 
Old 09-12-2022, 08:43 AM   #6
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 54

Rep: Reputation: Disabled
Ok how about echo $PATH
 
Old 09-12-2022, 08:46 AM   #7
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 54

Rep: Reputation: Disabled
Quote:
/bin/sh: ligne 1: o : command not found
do you have symbolic link setup for sh? what does which sh show?
 
Old 09-12-2022, 08:48 AM   #8
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 54

Rep: Reputation: Disabled
have you installed all qt dependencies? the dependency tree is pretty convoluted
 
Old 09-12-2022, 09:23 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,771
Blog Entries: 17

Rep: Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051
Quote:
Originally Posted by wiigelec View Post
do you have symbolic link setup for sh? what does which sh show?
LFS links /bin/sh to bash.

Quote:
Originally Posted by wiigelec View Post
have you installed all qt dependencies? the dependency tree is pretty convoluted
In my experience BLFS is very good at correctly listing immediate dependencies (which in turn will list theirs). Admittedly I've never tried to build and install anything as complicated as Qt.

Last edited by hazel; 09-12-2022 at 09:25 AM.
 
Old 09-12-2022, 10:06 AM   #10
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 54

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
LFS links /bin/sh to bash.

In my experience BLFS is very good at correctly listing immediate dependencies (which in turn will list theirs). Admittedly I've never tried to build and install anything as complicated as Qt.
i actually built qt5 twice this weekend, once for xfce and again for gnome using blfs jhalfs. takes about 160 minutes on my dell e6510 laptop. i actually wouldnít recommend building by hand as the dependency tree is quite convoluted with some circular dependencies.

what i would recommend is to get blfs jhalfs running and use it to build qt5 and its dependencies. what i do is select qt5 then find out what dependencies need built, then start slowly resolving them. i donít build anything in blfs jhalfs without first understanding why, and verifying the configuration in the book, as sometimes the build scripts have stuff you donít need and can break the build. i usually limit my blfs jhalfs build passes to less than five or so packages.

Last edited by wiigelec; 09-12-2022 at 10:07 AM.
 
Old 09-12-2022, 02:49 PM   #11
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 54

Rep: Reputation: Disabled
why are you getting Blocked C code on cloudflare in your error message? what does line 225 of the configure script say?

Last edited by wiigelec; 09-12-2022 at 02:59 PM.
 
Old 09-12-2022, 08:54 PM   #12
wiigelec
Member
 
Registered: Nov 2021
Distribution: Devuan
Posts: 54

Rep: Reputation: Disabled
i checked line 225 in my qt5 configure script and it is a function calling awk. since you couldn’t find make and presumably can’t find awk i suspect there is a problem with your path
 
Old 09-13-2022, 04:49 AM   #13
mbouzaie
LQ Newbie
 
Registered: Sep 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wiigelec View Post
Ok how about echo $PATH
It shows
Code:
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin
Quote:
Originally Posted by wiigelec View Post
do you have symbolic link setup for sh? what does which sh show?
which sh shows
Code:
/usr/bin/sh
As i thought it is an architecture problem. I recompiled the kernel and i copied x64 architecture this time. And as far as it is going configure is working well.
Thanks all for your help!
 
Old 09-13-2022, 04:57 AM   #14
derguteweka
Member
 
Registered: Sep 2018
Posts: 57

Rep: Reputation: Disabled
Moin,

Quote:
Originally Posted by mbouzaie View Post
I had to install which first, it returns
In my experience, "which" is a command, which needs to be installed pretty soon during building BLFS. If it is not, very subtile problems may happen, if "which" is not found by scripts like configure, etc.
So your problem may have it's cause by not having which intstalled "early" enough on your system.

cheers,
WK
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BLFS 10.0 How do I get total ownership of my blfs system ? Captian Kangeroo Linux From Scratch 4 12-09-2020 08:45 PM
[SOLVED] Blfs 8.3 Systemd printer install problem rabidlinux Linux From Scratch 6 10-15-2018 11:07 AM
actually while debugging an assembly language i have got the following error can any body figure out how i can rectify the following error niranjan1609 Linux - Newbie 3 06-03-2018 05:21 PM
i use the following way to install vlc in cent os but i got the following error praveenkalam Linux - Software 6 12-21-2009 03:49 AM
when i install the software "openfoam",i meet the following network problem ztdep Linux - Networking 0 07-22-2005 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration