Tag Info

New answers tagged

4

For general use, If you would like to run your program for any USB storage. Use the driver for the rule match. Add a udev rules file sudo nano /etc/udev/rules.d/90-detect-storage.rules Add this rule ACTION=="add", DRIVERS=="usb-storage", DRIVER=="sd", RUN+="/pathto/yourprogram" If you want your program to distinguish the disks, so it runs different ...


0

Your code works for me. Make sure you have libstdc++-dev installed. It's a virtual package, and in my case (Ubuntu 14.04.2 LTS) having 4.8 works. sudo apt-get install libstdc++-4.8-dev


5

You can use udev to run an albitrary command. To make it work, create a rule in /etc/udev/rules.d/: sudo nano /etc/udev/rules.d/my-usb-device.rules And enter: ACTION=="add", ATTRS{idProduct}=="XXXX", ATTRS{idVendor}=="YYYY", RUN+="/location/of/my/command" NOTE: The XXXX and YYYY values will be taken from lsusb output.


2

The GCC 5.x suite is not available in 15.04. You can get it by adding a PPA, such as https://launchpad.net/~nicola-onorata/+archive/ubuntu/toolchain I am not sure if this will result in it being the default compiler though, so you may still need to call it as g++-5or similar, to use it. You may also have some serious issues with linking to certain C++ ...


0

There are a number of libgsl packages, as shown by an apt-cache search: $ apt-cache search libgsl libgsl0-dbg - GNU Scientific Library (GSL) -- debug symbols package libgsl0-dev - GNU Scientific Library (GSL) -- development package libgsl0ldbl - GNU Scientific Library (GSL) -- library package libocamlgsl-ocaml - GNU scientific library for OCaml ...


0

Try running: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/ && sudo ldconfig && ./hon-x86_64. The libstdc++.so file in /usr/lib/gcc/x86_64-linux-gnu/4.9.2 is not the one that should be used. Also, a file is being specified (libstdc++.so). You should be specifying the directory the file is in (/usr/lib/x86_64-linux-gnu/). ...


0

I found the problem! It was not updated the tzdata in one computer. For update the tzdata execute in console sudo apt-get install tzdata tzdata-java With this command, the time configuration when executed zdump -v America/Santiago | grep 2015 should print these America/Santiago Sun Apr 26 02:59:59 2015 UTC = Sat Apr 25 23:59:59 2015 CLST isdst=1 ...


0

OK, i have done it by myself. I downloaded the current NVidia-CUDA-Toolkit. Then i shut down the X-server with: sudo service gdm stop Then a blackscreen appeared where I pressed: Ctrl + Alt + F1 I just logged into my account, cd'd to the folder where the toolkit was and ran it: sudo sh "name of toolkit".run After the installation i ...


0

This is strange to me since I did not install libsdl2-image-dev. Also when I try to view /usr/include/SDL2/ the folder doesn't even appear to exist which just adds to my confusion. apt-file searches the contents of available packages using a database, so it is hardly a surprise that it showed a package which you hadn't installed. I then tried to ...


2

It is not surprising that there are difficulties. Authors haven't provided the install scripts. So, we have to specify header and library locations manually: g++ -o programma ggg.cpp -I/home/girts/pokerstove/src/lib -l{peval,penum} -L/home/girts/pokerstove/src/build/lib/pokerstove/{peval,penum} And there is an error in the code of ggg.cpp, I think: ...


1

Add the path for the include files: $ g++ -o programma ggg.cpp -I/home/<your_username>/pokerstove/src/lib $ ./programma Hello World! -I<path_to_pokersove_headers> - To specify a directory to search for header files eg: $ find -name combinations.h ./pokerstove/src/lib/pokerstove/util/combinations.h therefore use a relative path: ...


1

This is ok: git clone https://github.com/andrewprock/pokerstove.git mkdir pokerstove/src/build cd pokerstove/src/build cmake .. make The binaries are in: ~/pokerstove/src/build/bin Run the binary with ~/pokerstove/src/build/bin/ps-eval



Top 50 recent answers are included