build blocks installation as root?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

build blocks installation as root?

#1 Post by edoc »

I am trying to install gnuradio but when I run

Code: Select all

./build-gnuradio
in Console it objects to being in root - the default for Puppy.

I started here:

Code: Select all

wget http://www.sbrac.org/files/build-gnuradio
Is there a way to get around this in Console, please?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

Wild guess here.. couldn't you just comment this block?

Code: Select all

if [ $USER = root -o $UID -eq 0 ]
then
	echo Please run this script as an ordinary user
	echo   it will acquire root privileges as it needs them via \"sudo\".
	exit
fi
If it still complains, then probably something with: $UID -eq 0

I'm sure there's someone here who knows a workaround..

Hmm.. don't know if Pup would honor this?

You'd need a few pkgs to try..

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#3 Post by edoc »

Commenting-out that section of code got me past the error but then I got one saying there was insufficient space.

It identifies the insufficient space as disk space vs RAM but there's plenty of HDD space.

I tried moving the build-gnuradio from /root to /mnt/home/gnuradio and that made no difference.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#4 Post by Semme »

Yeah, build and those things need lots of room. How much *system* space you got?

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#5 Post by edoc »

gparted says I have:

2.10 GiB on /dev/sda1 ntfs

5.43 GiB on /dev/sda2 ext3 /initrd/mnt/dev_save

I can free up more on /sda2 but does it really need that much?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

I can't find any specifics, but it sure appears there's a whole lot go'n on during that build.. Jury's out.

FYI- when ya need to ref disk space, this cmd'll give ya a quicker idea than GParted: df -h <wink>

Code: Select all

Filesystem            Size  Used Avail Use% Mounted on
rootfs                1.4G  1.2G  192M  87% /
As far as build- it's the free space / has..

PS- "GNU Radio build script blocks installation as root" :wink:

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#7 Post by edoc »

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 30G 19G 11G 65% /initrd/mnt/dev_save
/dev/loop1 504M 254M 251M 51% /initrd/pup_rw
/dev/loop0 149M 149M 0 100% /initrd/pup_ro2
/dev/loop4 159M 159M 0 100% /initrd/pup_ro4
/dev/loop5 97M 97M 0 100% /initrd/pup_ro5
/dev/loop6 39M 39M 0 100% /initrd/pup_ro6
unionfs 504M 254M 251M 51% /
tmpfs 314M 360K 314M 1% /tmp
shmfs 306M 0 306M 0% /dev/shm
#
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

YOU- should probably install the binary. Several *hints* lead me to believe so..

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#9 Post by edoc »

You have no idea how many times over the past many years I have tried to install apps not specifically built for Puppy.

It never works and always makes a mess ... usually either because someone forgot to tell me a minor step, which they assumed I knew, or because I missed something obvious - or not so obvious. Sigh.

I probably have 5 or more projects on hold because I cannot get apps to play nicely with Puppy ...
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#10 Post by Semme »

I also find Pups build environment dated and lacking. Isn't gnuradio_3.2.2 in Dpups pacman?

My advice? If you wanna run up to date apps, choose a distro that prides itself current..
Seeing this feast of wonderful code spread in front of me as a working system was a much more powerful experience than merely knowing, intellectually, that all the bits were probably out there. It was as though for years I’d been sorting through piles of disconnected car parts - only to be suddenly confronted with those same parts assembled into a gleaming red Ferrari, door open, keys swinging from the lock and engine gently purring with a promise of power…

— Eric S. Raymond
Doc- really.. if you have some experience, why not run something like Frugalware?

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#11 Post by edoc »

I have Exprimo running on 2 Netbooks and 5 laptops in the family and would rather not have to keep track of the peculiarities of more than one distro.

Exprimo has bridged the gap from older Panasonic Toughbooks (CF-28 & CF-29), to a MSI Netbook, a Z500 Laptop, a Samsung NB30 Netbook, and several year old Acers and Dell.

I have been watching Precise but think that may be optimized for newer computers.

I read elsewhere that SDR-RTL support may be in the newer Kernel -- still don't know if build-gnuradio will be OK there or if someone familiar with Puppy may need to tweak it some.

Always a complication that holds things up ...
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply