darkbibble
Posts: 543
Joined: Mon Mar 09, 2015 5:20 pm
Location: corby, england

help plz compiling xscreensaver from source

Sun Apr 15, 2018 12:41 pm

im tryig to install xscreensaver from source and im sure im missing some prequisits for compileing

it says im mising "bc" but a apt sreach gives me a confusing list.

i know when i first started with pi a few years ago there were some packages for pi that had stuff needed for comileing (i just cant remember where i foud the instuctions last time) as i have had alot of reinstalls since then my bookmarks are long gone.

i hope someone can help please
Q; How many Windows users does it take to fix a Linux problem??
A; Whats a Linux problem

User avatar
topguy
Posts: 4263
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: help plz compiling xscreensaver from source

Sun Apr 15, 2018 1:53 pm

Since xscreensaver already is in the repositories the command "sudo apt-get build-dep xscreensaver" should install all dependencies for building.

But also giving exact errormessages ( cut&pasted ) is SO helpful for us that tries to help.

darkbibble
Posts: 543
Joined: Mon Mar 09, 2015 5:20 pm
Location: corby, england

Re: help plz compiling xscreensaver from source

Sun Apr 15, 2018 2:13 pm

here is the error messege;

Code: Select all

pi@pitop-darkbibble:~/Downloads/xscreensaver $ sudo ./configure
current directory: /home/pi/Downloads/xscreensaver
command line was: ./configure 
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking whether the compiler works on ANSI C... yes
Turning on gcc compiler warnings.
checking whether gcc accepts -Wno-overlength-strings... yes
checking whether gcc accepts -Wdeclaration-after-statement... yes
checking whether gcc accepts -no-cpp-precomp... no
checking whether gcc accepts -std=c89... yes
Disabling C++ comments in ANSI C code.
checking how to run the C preprocessor... gcc -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes -Wno-overlength-strings -Wdeclaration-after-statement -std=c89 -U__STRICT_ANSI__ -E
checking for an ANSI C-conforming const... yes
checking for inline... __inline__
checking for bc... no

configure: error: Your system doesn't have "bc", which has been a standard
                  part of Unix since the 1970s.  Come back when your vendor
                  has grown a clue.
pi@pitop-darkbibble:~/Downloads/xscreensaver $ 

Q; How many Windows users does it take to fix a Linux problem??
A; Whats a Linux problem

User avatar
topguy
Posts: 4263
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: help plz compiling xscreensaver from source

Sun Apr 15, 2018 2:51 pm

Code: Select all

configure: error: Your system doesn't have "bc", which has been a standard
                  part of Unix since the 1970s.  Come back when your vendor
                  has grown a clue.
                  
Some sass here from the writers of configuration script, but the fix is as easy as "sudo apt install bc"

darkbibble
Posts: 543
Joined: Mon Mar 09, 2015 5:20 pm
Location: corby, england

Re: help plz compiling xscreensaver from source

Sun Apr 15, 2018 3:14 pm

this is the error i get when i try to install "bc"

Code: Select all

pi@pitop-darkbibble:~ $ sudo apt-get install bc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package bc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'bc' has no installation candidate
pi@pitop-darkbibble:~ $ 

Q; How many Windows users does it take to fix a Linux problem??
A; Whats a Linux problem

n67
Posts: 499
Joined: Mon Oct 30, 2017 4:55 pm

Re: help plz compiling xscreensaver from source

Sun Apr 15, 2018 3:34 pm

I think we really need to answer the two operative questions here:

1) Why are we building xscreensaver from source? Why isn't the apt-get-able version good enough?
Note well: I'm not saying there aren't good reasons for this - I'm not being snarky - but we really need to establish what those reasons are.

2) Why isn't 'bc' installed? If you're running any kind of normal Unix or Linux system, it will be. Are you running Raspbian? Something else? What I am saying is that if 'bc' is missing, who knows what else is missing. You may be in for a rough ride...

P.S. xscreensaver is written/maintained by JWZ. JWZ is known for being snarky. I'm not surprised by that comment from the configure script...

User avatar
bob_binz
Posts: 403
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK

Re: help plz compiling xscreensaver from source

Sun Apr 15, 2018 3:38 pm

Works here on a (relatively) fresh install of Raspbian:

Code: Select all

pi@raspberrypi:~ $ sudo apt-get install bc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  bc
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 96.3 kB of archives.
After this operation, 195 kB of additional disk space will be used.
Get:1 http://archive-bm.raspbian.org/raspbian stretch/main armhf bc armhf 1.06.95-9 [96.3 kB]
Fetched 96.3 kB in 0s (206 kB/s)
Selecting previously unselected package bc.
(Reading database ... 35157 files and directories currently installed.)
Preparing to unpack .../bc_1.06.95-9_armhf.deb ...
Unpacking bc (1.06.95-9) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up bc (1.06.95-9) ...
Did you update first?

Which version of (I assume) Raspbian are you using?

--
BBz

darkbibble
Posts: 543
Joined: Mon Mar 09, 2015 5:20 pm
Location: corby, england

Re: help plz compiling xscreensaver from source

Sun Apr 15, 2018 3:42 pm

i tryed to origionally from apt but it wasnt installing

i just updated my source list and it seems to be installing now. not sure why it wasnt working before

thanks for the assistance
Q; How many Windows users does it take to fix a Linux problem??
A; Whats a Linux problem

n67
Posts: 499
Joined: Mon Oct 30, 2017 4:55 pm

Re: help plz compiling xscreensaver from source

Tue Apr 17, 2018 2:18 am

bob_binz wrote:
Sun Apr 15, 2018 3:38 pm
Works here on a (relatively) fresh install of Raspbian:

Code: Select all

pi@raspberrypi:~ $ sudo apt-get install bc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  bc
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 96.3 kB of archives.
After this operation, 195 kB of additional disk space will be used.
Get:1 http://archive-bm.raspbian.org/raspbian stretch/main armhf bc armhf 1.06.95-9 [96.3 kB]
Fetched 96.3 kB in 0s (206 kB/s)
Selecting previously unselected package bc.
(Reading database ... 35157 files and directories currently installed.)
Preparing to unpack .../bc_1.06.95-9_armhf.deb ...
Unpacking bc (1.06.95-9) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up bc (1.06.95-9) ...
Did you update first?

Which version of (I assume) Raspbian are you using?

--
BBz
I'm surprised you were able to install bc - without it telling you that bc was already installed.

Did you intentionally uninstall it first - to make the point that you could install it?

User avatar
bob_binz
Posts: 403
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK

Re: help plz compiling xscreensaver from source

Tue Apr 17, 2018 7:34 pm

n67 wrote:
Tue Apr 17, 2018 2:18 am

I'm surprised you were able to install bc - without it telling you that bc was already installed.

Did you intentionally uninstall it first - to make the point that you could install it?
Actually, I left out a small piece of info from my post - my fresh install is Raspbian Lite.

But well spotted!

--
BBz

n67
Posts: 499
Joined: Mon Oct 30, 2017 4:55 pm

Re: help plz compiling xscreensaver from source

Tue Apr 17, 2018 10:44 pm

bc is supposed to be stock Unix, so I'm surprised that Raspbian Lite omits it.

But, indeed, I just tested - and it does. JWZ is right - that it should be absolutely standard.

User avatar
rpdom
Posts: 12298
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: help plz compiling xscreensaver from source

Wed Apr 18, 2018 10:13 pm

n67 wrote:
Tue Apr 17, 2018 10:44 pm
bc is supposed to be stock Unix, so I'm surprised that Raspbian Lite omits it.
Check the status of bc in Raspbian, Debian and Ubuntu (for a start)

Code: Select all

Package: bc
Priority: optional
So, it may be installed on some distros, but isn't part of the base Linux.

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 14 guests