17

you should type: ./a.out if your file is in the current directory. also, you might check if executable bit is set with ls -al a.out and if not, set it using chmod +x a.out however, most compilers will set executable bit for you automagically.


16

You need to put a ./ in front of a.out in order to execute that: When you type the name of a program such as a.out the system looks for the file in your PATH. On my system, PATH is set to /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games Yours is probably similar. To check, enter ...


11

The RPI ARM core is an ARM 1176jzf-S, the suitable flags should then be -march=armv6zk -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp Drop the -mfloat-abi=hard -mfpu=vfp when on a soft float distro. These flags can be found by running gcc -mcpu=native -march=native -Q --help=target on gcc >= 4.7`


8

To install programs on machine unable to access internet enter command as normal and read output look towards end of results for the failed to fetch lines and enter these links into a web capable machine, save the links to a usb memory stick. Repeat for all failed to fetch lines *pi@raspberrypi ~/pi $ sudo apt-get install scrot Reading package lists... ...


7

You can easily solve it by installing libasound2-dev. to do so just use the following code: apt-get install libasound2-dev Now you should be able to use alsa/asoundlib.h.


6

Here is a Guide how to compile seafile-client on Raspbian Wheezy: 1) Install all dependencies available in the repository: sudo apt-get install qt4 doxygen cmake sqlite3 libsqlite3-dev openssl libssl-dev libevent-2.0-5 libevent-dev python-pip libjansson-dev automake libtool libglib2.0-dev uuid-dev valac libfuse-dev libcurl4-gnutls-dev #wait very long time ...


6

What is the difference between kernel "3.18.11" and "3.18.11-v7+"? The -v7+ is tacked on to indicate this isn't from a vanilla source tree, and that it was compiled specifically for the Pi 2. I'm planning to get this kernel source: wget https://github.com/raspberrypi/linux/archive/rpi-3.18.y.tar.gz Is this the correct source for my kernel? No. If you ...


6

You can try sudo apt-get install raspberrypi-kernel-headers if you're running raspbian. As suggested here https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=154749


6

Berryconda is the way to go! See https://github.com/jjhelmus/berryconda


5

Linux, like unix, is fundamentally a C based system, and gcc, the native C compiler, is probably the most widely used C compiler in the world today. The GNU Fortran compiler is gfortran. It is also part of GCC (the CC is for "Compiler Collection", the G is for GNU, and gcc is the usual name of the C compiler executable). It used to be called g77. There are ...


5

In short, Yes, they will work. Both repositories use the same upstream code to build their packages. That is, armhf binaries from armbian will run on an armhf raspbian. Your problem won't binary compatibility but dependency compatibility. Using a statically linked executable will resolve the dependency compatibility at the expense of binary size. Debian ...


3

Lucky to see this question, I just spent weeks on controlling two servo (SG90) using WiringPi and programming in C, there're three things that I recommend. 1.Using BCM GPIO instead of WiringPi Pin because controlling more than one servo, you might need more than one pin such like 1(WiringPi Pin)/18(BCM GPIO) for another servo, For RPi3 B+ version, it give ...


3

NOOBS is probably going to be the easiest thing to just setup and go. It ships with gcc/g++ for writing in C and C++ and you could install gfortran by typing sudo apt-get install gfortran in the command line. For lighter programming, if he's interested, he could try scripting languages. Python comes with NOOBS and ruby is a personal favorite. Edit: I ...


3

Is it possible to run Raspberry Pi 3 with a 64-bit kernel and 32-bit user space? Yes. Some pre-built images have this ready to go: Crazyhead90's Raspbian Stretch Lite and Desktop 64-bit images (Pi 3, 3B+) sakaki's Raspbian Buster Desktop 64-bit image (Pi 4) usually running this "hybrid" configuration would break the package managers, but I'm not worried ...


2

Yaourt will pass the -A flag to makepkg if -A is passed to yaourt: $ yaourt -SA the-package


2

to make linking work you'll need to run ldconfig $ sudo ldconfig (oh well already in comments above. didn't see that until post)


2

Pis with the 40 pin expansion header give access to two channels for hardware PWM. Channel 0 is on gpios 12/18, channel 1 is on gpios 13/19. So with wiringPi you should be able to use two servos. If you want to use more than two servos you'll need to use something like my pigpio library which can generate hardware timed PWM on all the user gpios, or buy ...


2

A make which I do on a B+ takes 3 minutes. The identical make takes one minute on a Pi 2. If your program uses threads you won't have to do anything special to use the extra cores. The main program or any of its threads which want to run will be given any available core. I don't know if there are compilation flags which will make a difference to the ...


2

Have you tried this when you compile: -mcpu=cortex-a8 -mfpu=neon What CPU capabilities does x.264 report at runtime? I get this on my old model B: x264 [info]: using cpu capabilities: none! You should be seeing NEON on the PI 2.


2

seems like you are missing the development openssl package. you can try this: sudo apt-get install libssl-dev


2

If you suspect a hardware problem, try running cpu and RAM tests to confirm it: sudo apt-get install memtester memtester I would probably run fsck as well, even though filesystem errors resulting in segfaults are unlikely. Finally, I would assume that the bug is specific to the compiler and try to install a different version of gcc.


2

I compiled a linux kernel on my RasPi, following the Guide from the Raspberry Dokumentation and the Readme file from the driver sources. sudo apt-get update sudo apt-get upgrade mkdir temp cd temp git clone --depth=1 https://github.com/raspberrypi/linux # bc must be installed sudo apt-get install bc wget http://www.silabs.com/Support%20Documents/Software/...


2

Yacc is a tool often used together with Lex to create a language parser, which is a critical part of a code interpreter such as ruby. The language (in this case Ruby) is described using a special notation understood by yacc, which then compiles (part of) the parser. So yeah, you need it. There are yacc compatible tools such as bison that might be used in ...


2

On the Seafile download page there is a link to download a "Seafile Terminal Client" and it's listed for "Generic Linux". Download, and extract the 32-bit option. Since it's written in bash/python, you don't need to compile it. It doesn't appear that the standard client is supported on the RPi, and I can't find an available source download either. Farther ...


2

MongoDB Is In The Repositories You just need to install MongoDB, right? It is already compiled and available in the Raspbian repositories: pi@raspberrypi:~ $ apt-cache search mongodb ... mongodb - object/document-oriented database (metapackage) mongodb-clients - object/document-oriented database (client apps) mongodb-dev - object/document-oriented database ...


2

There is now a package for this in the Debian Backports package repository. Add the repository to your sources by creating a new file called however you like in the /etc/apt/sources.list.d directory, and inside, write the line deb http://ftp.debian.org/debian stretch-backports main (if you run debian stretch) Then run sudo apt update and sudo apt install ...


2

Sure, it's possible. 64-bit operating systems do it all the time*. It happens when you're on a 64-bit OS and you open up a 32-bit app (aka 32-bit user space application). But sometimes, there may be issues with libraries/dependencies. I once encountered an error on a PC, something about wrong ELF class. Solved by installing the appropriate 32-bit library ...


2

You need both sets of libraries and both architectures compiled against the right libraries, so 2 build environments. Look up multi arch and your prefered bsse to get pointers. Like https://wiki.debian.org/MultiarchCrossToolchainBuild So you would need to do something like that but in the Rasbian space. So building an arm64 kernel and armhf user land ...


2

It is because that you passed the wrong type of argument to printf. When the format given to printf is "(%d," or "%d)\n", the second argument is expected to be int. You gave it long int. For variable argument list, If there is no actual next argument, or if type is not compatible with the type of the actual next argument (as promoted according to the ...


Only top voted, non community-wiki answers of a minimum length are eligible