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 ...


15

Assuming you're using Raspbian, you need to find out which .deb file you need, and transfer those to your Raspberry Pi, and place them in /var/cache/apt/archives/partial, and then just use the command: sudo dpkg -i /var/cache/apt/archives/partial/xxxx where xxxx is the exact name of the .deb file you want to install If you need to find dependencies, http:/...


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

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

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

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 ...


4

This is a $PATH issue. $PATH is an environment variable that contains a list of directories to search when looking for an executable. You can see your current $PATH via echo $PATH. javac: command not found indicates javac is not in any of the directories in your $PATH. You need to add the directory with javac in it into your $PATH, or add javac to one of ...


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

You should not be changing the packages specified arch array. The architectures specified in the PKGBUILDs are the ones it has been tested against. Here you can find a list of PKGBUILDs that are compatible for the armv6h architecture. Also, using aur helpers such as yaourt is not the best way to do things. Yes, it makes things one command easier for you. ...


3

It's likely you just installed the JRE and not the full JDK. If you're running Raspbian Wheezy, you can use apt-get install openjdk-7-jdk to install javac. (If you're using the older Debian Wheezy OS, it works with the Sun JVM, so you can install that with the instructions here: http://www.savagehomeautomation.com/pi-jdk . The standard Raspbian OS isn't ...


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

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

Try this. http://qt-project.org/wiki/RaspberryPi , it worked for me.


2

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


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

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

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 ...


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