Discover create python executable linux, include the articles, news, trends, analysis and practical advice about create python executable linux on alibabacloud.com
Like windows, Linux also has a static/dynamic link library. The following describes how to create and use it:Suppose there are the following files:The header file string. h declares the prototype of the relevant function. The content is as follows:
Strlen. C: The implementation of the strlen function to obtain the length of a given string. The content is as follows:
Strlnen. c: implement the strnlen functio
# Cpbusybox-1.00.tar.gz/floppylinux
# Cd/floppylinux
# Tar xvfz busybox-1.00.tar.gz
# Cd busybox-1.00
# Make menuconfig
The following are functional options that need to be compiled into busybox,
General Configuration options
Show verbose applet usage messages
Runtime SUID/SGID configuration via/etc/busybox. conf
Build Options
Build BusyBox as a static binary (no shared libs)
Installation Options
Don't use/usr
Other options are some basic lin
(client_sockfd, Ch, 1 );
Close (client_sockfd );}}
After the program is completed, you can use the command to compile it. Enter "gcc-O Server server. c" in the command line to compile server. c into an executable program server. Then the client program can be used for testing. Run "./Server" on the command line to start the service program and run "netstat-Na" to check whether the service port of the server is available. If yes, run the client progr
I have written the test code for the fork process under Python (to show that the problem is not necessarily entirely appropriate):
def Fork (a):
def Now ():
import datetime return
Datetime.datetime.now (). Strftime ("%s.%f")
import os
Import Time
print now (), a
if os.fork () = = 0:
print ' sub-process [%s]:%s '% (now (), Os.getpid ()) while
1:
a-=10
print ' child process's a value [%s]:%s '% (now (), a)
if a
TIPS:
Create one of the simplest Linux random start services? XIAOXIA[PG]Create one of the simplest Linux random start servicesThere are many ways to get Linux to automatically run scripts or programs that you write, but most of them are written in/etc/rc.d/rc.local or/etc/rc.loca
1. OverviewThis series is a summary for you, not a system, the main purpose is to record the Linux I think often forget all aspects.2. File systemUnder Linux, there is no concept of the C and D disks under Windows, but rather a hierarchy of directories and files, starting with the root (root) and the name/. The directory is a file containing many catalog items, and everything in
Linux: Learn how to create static libraries, dynamic libraries, simple makefile writing, and linuxmakefile
Create a static library
Create four file bin (Executable File), lib (Library), include (header file), src (put source file)
The library started here is add
Run1) gcc-c
When you install Debian Linux, it is possible for the installation process to provide you with multiple versions of Python available at the same time, so there will be more than one Python executable binary file in the system. You can use the LS command to see which Python b
file for Linux as Makefile. The command is as follows:
---- Cp Makefile. lnx Makefile
---- It is important to note that you may need to modify the Makefile file and modify the location of the mySQL library and header file according to the actual installation conditions. You can also modify the installation location of executable files.
---- (2) run the following command:
---- # Make
---- # M
SublimeText is a very powerful Text editor. The following describes how to create SublimeText3 as a PythonDjango development tool: 1. install Sublime Text 3.
Although Sublime 3 is still in beta stage, it is very stable and the speed is improved compared with Sublime 2. sublime 3 can be downloaded and installed on the official website. although Sublime is free software, if you have sufficient financial capabilities, you can consider purchasing it to s
It took me a few hours yesterday and finally made the root file system ~
(1): first, the development environment required for the creation of the Linux root file system.
1: porting linux kernel version: linux-3.0.1 (as long as it can be used)
2: Cross-compilation tool: Arm-Linux-GCC 4.3.2 (optional)
3: file system prod
. So add. O sub. o
Generate the dynamic library libtiger. So, and libtiger. So is the target dynamic library we generated. We will use the dynamic library and Main. C program to generate executable programs later
Note:
The above two parts can also be merged in one step:
Gcc-FPIC-shared Add. c sub. C-o libtiger. So
2. Use Dynamic Link Library
When compiling a program, the dynamic link library is consistent with the static library. The "-l library name"
, the input method is to press CTRL + V, Loosen v., press M)3) can also be converted in Linux:first, make sure the file has executable permissions: chmod a+x filename, then modify the file format: VI filename, then use the set FF (or set FileFormat) command to view the file format for Fileformat=dos or Fileformat=unix;then use the following command to modify the file format: Set Ff=unix or: Et Fileformat=unix, last Wq (save exit)Finally, execute the f
Article Title: Create a five-character PinYin Input Method in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I have been working in lin
Two commands create Vim as the Python IDE method, vimpython
Run the following two commands to configure Vim (including plug-ins) to Python IDE. Currently, MAC and Ubuntu are supported.
curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.shbash vim.sh
Example
What have you done?
A convenient bash script is written to configure VIM
The configur
/_ install directory to the root file system directory)All other commands except busybox are links/Sbin is also the link of busybox,/Usr/bin is also the link of busybox,All the compiled executable files are placed under/usr/sbin.7. It is very important to pay attention to/lib./Lib library is actually the library for compiling busybox, that is, the library for cross compiler. Here we use 3.4.5 (Location/usr/local/ARM/gcc-3.4.5-glibc-2.3.2/ARM-
Article Title: how to create an Image file in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
See what you want to make rh_linux.img look like. If it is a file system, you ne
Create a web pageIs an important part of Web applications. Here we will introduce threeLinuxScreem, Bluefish, and Quanta Plus tools for creating web pages in a desktop environment.
FrontPage-Screem
FrontPage-Screem is the next integrated HTML/webpage development tool in Linux. Screem was initially designed based on the GNOME style, but it can run well in the KDE environment, which makes it very convenient t
points to the old version 2.4.3
[admin@bej301441 bin]$ which Python
/usr/local/bin/python
Executing the which Python command, you will find that the default Python is in the/usr/local/bin/python directory, and actually our newly installed
The vast majority of Linux distribution has built-in Python installed. We only need to input python in the liunx command line, but the version is a bit low, not what we want, such:
1. Download Python
To begin:
There are two types of Linux platforms,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.