debian-based

Linking an assembler program: error “undefined reference to `printf'”

ⅰ亾dé卋堺 提交于 2019-12-03 17:18:27
I'm trying to compile this x86 assembly code on x64 Debian : BITS 32 %include 'training.s' global main extern exit ; =============================================== section .text main: ; The program begins here: call read_hex mov edx,eax call read_hex add eax,edx add eax,eax inc eax call print_eax ; Exit the process: push 0 call exit I'm getting these errors: ~$nasm -f elf -g 0_strange_calc.asm && ld -o 0_strange_calc 0_strange_calc.o ld: i386 architecture of input file `0_strange_calc.o' is incompatible with i386:x86-64 output ld: warning: cannot find entry symbol _start; defaulting to

Resources on writing a Debian/Ubuntu deb package? [closed]

梦想与她 提交于 2019-12-03 03:17:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm getting started preparing an installation script for a software package onto an Ubuntu server. I would like to write a script as a .deb package that is aware of dependencies that must be installed beforehand (a database, web server, etc.). Can you recommend any tutorials/resources to help a newbie developer

Resources on writing a Debian/Ubuntu deb package? [closed]

烂漫一生 提交于 2019-12-02 17:45:48
I'm getting started preparing an installation script for a software package onto an Ubuntu server. I would like to write a script as a .deb package that is aware of dependencies that must be installed beforehand (a database, web server, etc.). Can you recommend any tutorials/resources to help a newbie developer get started writing deb packages? Update: Canonical has a thorough Packaging Guide which explains the process very well. If you are entirely new to building Debian packages, I suggest that you look at the Debian New Maintainers' Guide and use the Debian Developer's Reference as

mysql - ERROR 1064 (42000) when using keywords as column name

走远了吗. 提交于 2019-12-01 09:37:11
问题 What's wrong with this? Ran this successfully on a Gentoo system, but now on a Debian-Squeeze (Raspberry PI) it won't work. Database is setup allright mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | arduino1 | | mysql | | performance_schema | | test | | tmp | +--------------------+ 6 rows in set (0.01 sec) mysql> Command is: #mysql -u root -p******* arduino1 < arduino-tables.sql Resulting in: ERROR 1064 (42000) at line 1: You have an

How to specify filepath in java?

我与影子孤独终老i 提交于 2019-12-01 01:21:49
I have created a java application for "Debian Linux." Now I want that that application reads a file placed in the directory where the jar file of that application is specified. So what to specify at the argument of the File Object? File fileToBeReaded = new File(...); What to specify as argument for the above statement to specify relative filepath representing the path where the jar file of the application has been placed? If you know the name of the file, of course it's simply new File("./myFileName") If you don't know the name, you can use the File object's list() method to get a list of

How to specify filepath in java?

老子叫甜甜 提交于 2019-11-30 16:08:38
问题 I have created a java application for "Debian Linux." Now I want that that application reads a file placed in the directory where the jar file of that application is specified. So what to specify at the argument of the File Object? File fileToBeReaded = new File(...); What to specify as argument for the above statement to specify relative filepath representing the path where the jar file of the application has been placed? 回答1: If you know the name of the file, of course it's simply new File(

Python Requests - How to use system ca-certificates (debian/ubuntu)?

 ̄綄美尐妖づ 提交于 2019-11-30 06:03:36
I've installed a self-signed root ca cert into debian's /usr/share/ca-certificates/local and installed them with sudo dpkg-reconfigure ca-certificates . At this point true | gnutls-cli mysite.local is happy, and true | openssl s_client -connect mysite.local:443 is happy, but python2 and python3 requests module insists it is not happy with the cert. python2: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 70, in get return request('get', url, params=params, **kwargs) File "/usr/local/lib/python2.7/site

Python Requests - How to use system ca-certificates (debian/ubuntu)?

非 Y 不嫁゛ 提交于 2019-11-29 02:31:37
问题 I've installed a self-signed root ca cert into debian's /usr/share/ca-certificates/local and installed them with sudo dpkg-reconfigure ca-certificates . At this point true | gnutls-cli mysite.local is happy, and true | openssl s_client -connect mysite.local:443 is happy, but python2 and python3 requests module insists it is not happy with the cert. python2: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/requests/api.py",

What is the correct target for the JAVA_HOME environment variable for a Linux OpenJDK Debian-based distribution?

烈酒焚心 提交于 2019-11-28 03:38:05
In Windows, JAVA_HOME must point to the JDK installation folder (so that JAVA_HOME/bin contains all executables and JAVA_HOME/libs contains all default jar libraries). If I download Sun's JDK bundle and installs it in Linux, it is the same procedure. However, I need to use Kubuntu's default OpenJDK package. The problem is that all executables are placed in /usr/bin . But the jars are placed in /usr/share/java . Since they are not under the same JAVA_HOME folder I'm having trouble with Grails and maybe there will be trouble with other applications that expect the standard Java structure. If I

What is the correct target for the JAVA_HOME environment variable for a Linux OpenJDK Debian-based distribution?

拥有回忆 提交于 2019-11-27 00:06:14
问题 In Windows, JAVA_HOME must point to the JDK installation folder (so that JAVA_HOME/bin contains all executables and JAVA_HOME/libs contains all default jar libraries). If I download Sun's JDK bundle and installs it in Linux, it is the same procedure. However, I need to use Kubuntu's default OpenJDK package. The problem is that all executables are placed in /usr/bin . But the jars are placed in /usr/share/java . Since they are not under the same JAVA_HOME folder I'm having trouble with Grails