LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Install GCC binaries and then screen on unknown distro (https://www.linuxquestions.org/questions/linux-software-2/install-gcc-binaries-and-then-screen-on-unknown-distro-4175499027/)

bomberb17 03-21-2014 05:42 PM

Install GCC binaries and then screen on unknown distro
 
Hello, I have a pre-configured linux distro on a raspberry pi (used for a bitcoin miner)
My target is to install screen so I can run cgminer on it and then ssh out and keep it running.
I downloaded the tarball, ran tar -xzvf screen-4.0.3.tar.gz , but when I run ./configure I get
Code:

root@raspberrypi:~/screen-4.0.3# ./configure
this is screen version 4.0.3
checking for prefix by checking for screen... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

I can't tell which distro it is, no welcome message when I log on or something.
The only thing I could find:
Code:

root@raspberrypi:~# cat /etc/issue
Poky 9.0.3 (Yocto Project 1.4.3 Reference Distro) 1.4.3 \n \l

can someone help?

unSpawn 03-22-2014 05:23 PM

http://www.yoctoproject.org -> http://www.yoctoproject.org/tools-resources/projects/poky ?

bomberb17 03-23-2014 09:08 AM

That link doesn't help me much.. Yes I have looked through the yocto webpages, wiki and such, but I could not find any useful information on a yocto software repository, or how to install other software.

unSpawn 03-23-2014 10:47 AM

cat /etc/opkg/*.conf; opkg update; opkg list|grep whatever*; opkg install whatever_package

bomberb17 03-23-2014 02:35 PM

Code:

root@raspberrypi:~# cat /etc/opkg/*.conf
cat: can't open '/etc/opkg/*.conf': No such file or directory

Code:

root@raspberrypi:~# ls /etc/
busybox.links                inputrc                      rc0.d                        services
default                      issue                        rc1.d                        shells
device_table                issue.net                    rc2.d                        skel
dropbear                    ld.so.cache                  rc3.d                        sysctl.conf
filesystems                  ld.so.conf                  rc4.d                        syslog-startup.conf
fstab                        motd                        rc5.d                        syslog-startup.conf.busybox
group                        mtab                        rc6.d                        terminfo
host.conf                    network                      rcS.d                        timestamp
hostname                    nsswitch.conf                resolv.conf                  udev
hosts                        passwd                      rpc                          udhcpc.d
init.d                      profile                      rpm                          version
inittab                      protocols                    rpm-postinsts                volatile.cache

Code:

root@raspberrypi:~# opkg
-sh: opkg: not found


unSpawn 03-23-2014 06:07 PM

which ipkg opkg

bomberb17 03-24-2014 05:24 AM

Quote:

Originally Posted by unSpawn (Post 5140004)
which ipkg opkg

Does not return anything. Thanks for helping BTW:)

bomberb17 03-25-2014 03:27 PM

bump

bomberb17 03-28-2014 02:40 PM

bump

bomberb17 05-25-2014 10:26 AM

bump

bomberb17 05-25-2014 10:30 AM

Code:

root@raspberrypi:~# ls /bin
addgroup            fgrep                ping6
adduser              grep                ps
ash                  gunzip              pwd
busybox              gzip                rm
cat                  hostname            rmdir
chattr              ip                  sed
chgrp                kill                sh
chmod                ln                  sleep
chown                login                stty
cp                  ls                  su
cpio                mkdir                sync
date                mknod                tar
dd                  mktemp              tinylogin
delgroup            more                touch
deluser              mount                true
df                  mountpoint          umount
dmesg                mountpoint.sysvinit  uname
dnsdomainname        mv                  usleep
dumpkmap            netstat              vi
echo                pidof                zcat
egrep                pidof.sysvinit
false                ping


273 05-25-2014 10:36 AM

Which distribution are you running?
If the answer is "I don't know" then what information is it you want to give to John Q Random and why?

bomberb17 05-25-2014 10:52 AM

Quote:

Originally Posted by 273 (Post 5176783)
Which distribution are you running?
If the answer is "I don't know" then what information is it you want to give to John Q Random and why?

Code:

root@raspberrypi:~# cat /etc/issue
Poky 9.0.3 (Yocto Project 1.4.3 Reference Distro) 1.4.3 \n \l


273 05-25-2014 11:16 AM

I have to say I have no idea how to use Yocto. As far as I can see it seems to be a framework for installing Linux on embedded systems which includes the Pi. Unless you're using Yocto for a specific reason I'd suggest installing Raspbian so you can just "apt-get install screen" and, if you're running Jessie (currently testing, will be Stable) just "apt-get install cgminer" also.

bomberb17 05-25-2014 11:36 AM

I have tried using debian and porting the whole miner thing to it, but for some reason cgminer starts producing many errors after a few minutes and eventually it crashes:
Code:

cgminer version 4.3.2 - Started: [2014-05-24 20:27:45]
--------------------------------------------------------------------------------
 (5s):47.49G (1m):391.3G (5m):385.4G (15m):192.6G (avg):562.8Gh/s
 A:55440  R:128  HW:670  WU:7826.1/m
 Connected to uk1.ghash.io diff 256 with stratum as user vr4dude316.hashitup
 Block: 5c15d060...  Diff:10.5G  Started: [20:32:32]  Best share: 9.59K
--------------------------------------------------------------------------------
 [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit
 0: BA1 0      :  0: 8/246              | 5.243G / 168.2Gh/s WU:2340.3/m
 1: BA1 1      :  1: 8/249              | 6.055G / 188.1Gh/s WU:2639.8/m
 2: BA1 2      :  2: 8/254              | 46.59G / 206.1Gh/s WU:2846.0/m
--------------------------------------------------------------------------------
 [2014-05-24 20:34:10] 0: cmd_READ_RESULT_BCAST failed
 [2014-05-24 20:34:10] 1: cmd_READ_RESULT_BCAST failed
 [2014-05-24 20:34:10] 0: cmd_READ_RESULT_BCAST failed
 [2014-05-24 20:34:10] 1: cmd_READ_RESULT_BCAST failed
 [2014-05-24 20:34:10] 0: cmd_READ_RESULT_BCAST failed
 [2014-05-24 20:34:10] 1: cmd_READ_RESULT_BCAST failed

So I had to go back to this custom distro made by the miner's manufacturer.
So my only option is to install gcc on it to be able to install other tools like screen.


All times are GMT -5. The time now is 08:59 AM.