📄 install
字号:
- Modify lib/setup.h - Modify lib/Makefile.vc6 - Add defines to Project/Settings/C/C++/General/Preprocessor Definitions in the curllib.dsw/curllib.dsp Visual C++ 6 IDE project.IBM OS/2======== Building under OS/2 is not much different from building under unix. You need: - emx 0.9d - GNU make - GNU patch - ksh - GNU bison - GNU file utilities - GNU sed - autoconf 2.13 If you want to build with OpenSSL or OpenLDAP support, you'll need to download those libraries, too. Dirk Ohme has done some work to port SSL libraries under OS/2, but it looks like he doesn't care about emx. You'll find his patches on: http://come.to/Dirk_Ohme If during the linking you get an error about _errno being an undefined symbol referenced from the text segment, you need to add -D__ST_MT_ERRNO__ in your definitions. If everything seems to work fine but there's no curl.exe, you need to add -Zexe to your linker flags. If you're getting huge binaries, probably your makefiles have the -g in CFLAGS.VMS=== (The VMS section is in whole contributed by the friendly Nico Baggus) This is the first attempt at porting cURL to VMS. Curl seems to work with FTP & HTTP other protocols are not tested. (the perl http/ftp testing server supplied as testing too cannot work on VMS because vms has no concept of fork(). [ I tried to give it a whack, but thats of no use. SSL stuff has not been ported. Telnet has about the same issues as for Win32. When the changes for Win32 are clear maybe they'l work for VMS too. The basic problem is that select ONLY works for sockets. Marked instances of fopen/[f]stat that might become a problem, especially for non stream files. In this regard, the files opened for writing will be created stream/lf and will thus be safe. Just keep in mind that non-binary read/wring from/to files will have a records size limit of 32767 bytes imposed. Stat to get the size of the files is again only safe for stream files & fixed record files without implied CC. -- My guess is that only allowing access to stream files is the quickest way to get around the most issues. Therefore all files need to to be checked to be sure they will be stream/lf before processing them. This is the easiest way out, I know. The reason for this is that code that needs to report the filesize will become a pain in the ass otherwise. Exit status.... Well we needed something done here, VMS has a structured exist status: | 3 | 2 | 1 | 0| |1098|765432109876|5432109876543|210| +----+------------+-------------+---+ |Ctrl| Facility | Error code |sev| +----+------------+-------------+---+ With the Ctrl-bits an application can tell if part or the whole message has allready been printed from the program, DCL doesn't need to print it again. Facility - basicaly the program ID. A code assigned to the program the name can be fetched from external or internal message libraries Errorcode - the errodes assigned by the application Sev. - severity: Even = error, off = non error 0 = Warning 1 = Success 2 = Error 3 = Information 4 = Fatal <5-7> reserved. This all presents itself with: %<FACILITY>-<SeV>-<Errorname>, <Error message> See also the src/curlmsg.msg file, it has the source for the messages In src/main.c a section is devoted to message status values, the globalvalues create symbols with certain values, referenced from a compiled message file. Have all exit function use a exit status derived from a translation table with the compiled message codes. This was all compiled with: Compaq C V6.2-003 on OpenVMS Alpha V7.1-1H2 So far for porting notes as of: 13-jul-2001 N. BaggusQNX=== (This section was graciously brought to us by David Bentham) As QNX is targetted for resource constrained environments, the QNX headers set conservative limits. This includes the FD_SETSIZE macro, set by default to 32. Socket descriptors returned within the CURL library may exceed this, resulting in memory faults/SIGSEGV crashes when passed into select(..) calls using fd_set macros. A good all-round solution to this is to override the default when building libcurl, by overriding CFLAGS during configure, example # configure CFLAGS='-DFD_SETSIZE=64 -g -O2'CROSS COMPILE============= (This section was graciously brought to us by Jim Duey, 23-oct-2001) Download and unpack the cURL package. Version should be 7.9.1 or later. 'cd' to the new directory. (ie. curl-7.9.1-pre4) Set environment variables to point to the cross-compile toolchain and call configure with any options you need. Be sure and specify the '--host' and '--build' parameters at configuration time. The following script is an example of cross-compiling for the IBM 405GP PowerPC processor using the toolchain from MonteVista for Hardhat Linux. (begin script) #! /bin/sh export PATH=$PATH:/opt/hardhat/devkit/ppc/405/bin export CPPFLAGS="-I/opt/hardhat/devkit/ppc/405/target/usr/include" export AR=ppc_405-ar export AS=ppc_405-as export LD=ppc_405-ld export RANLIB=ppc_405-ranlib export CC=ppc_405-gcc export NM=ppc_405-nm configure --target=powerpc-hardhat-linux \ --host=powerpc-hardhat-linux \ --build=i586-pc-linux-gnu \ --prefix=/opt/hardhat/devkit/ppc/405/target/usr/local \ --exec-prefix=/usr/local (end script) The '--prefix' parameter specifies where cURL will be installed. If 'configure' completes successfully, do 'make' and 'make install' as usual.RISC OS======= The library can be cross-compiled using gccsdk as follows: CC=riscos-gcc AR=riscos-ar RANLIB='riscos-ar -s' ./configure \ --host=arm-riscos-aof --without-random --disable-shared make where riscos-gcc and riscos-ar are links to the gccsdk tools. You can then link your program with curl/lib/.libs/libcurl.aPORTS===== This is a probably incomplete list of known hardware and operating systems that curl has been compiled for. If you know a system curl compiles and runs on, that isn't listed, please let us know! - Alpha DEC OSF 4 - Alpha Digital UNIX v3.2 - Alpha FreeBSD 4.1, 4.5 - Alpha Linux 2.2, 2.4 - Alpha NetBSD 1.5.2 - Alpha OpenBSD 3.0 - Alpha OpenVMS V7.1-1H2 - Alpha Tru64 v5.0 5.1 - HP-PA HP-UX 9.X 10.X 11.X - HP-PA Linux - MIPS IRIX 6.2, 6.5 - MIPS Linux - Pocket PC/Win CE 3.0 - Power AIX 3.2.5, 4.2, 4.3.1, 4.3.2, 5.1 - PowerPC Darwin 1.0 - PowerPC Linux - PowerPC Mac OS 9 - PowerPC Mac OS X - SINIX-Z v5 - Sparc Linux - Sparc Solaris 2.4, 2.5, 2.5.1, 2.6, 7, 8 - Sparc SunOS 4.1.X - StrongARM (and other ARM) RISC OS 3.1, 4.02 - StrongARM Linux 2.4 - StrongARM NetBSD 1.4.1 - Ultrix 4.3a - i386 BeOS - i386 DOS - i386 FreeBSD - i386 HURD - i386 Linux 1.3, 2.0, 2.2, 2.3, 2.4 - i386 NetBSD - i386 OS/2 - i386 OpenBSD - i386 SCO unix - i386 Solaris 2.7 - i386 Windows 95, 98, ME, NT, 2000 - i386 QNX 6 - i486 ncr-sysv4.3.03 (NCR MP-RAS) - ia64 Linux 2.3.99 - m68k AmigaOS 3 - m68k Linux - m68k OpenBSD - m88k dg-dgux5.4R3.00 - s390 Linux - XScale/PXA250 Linux 2.4OpenSSL======= You'll find OpenSSL information at: http://www.openssl.orgMingW32/Cygwin============== You'll find MingW32 and Cygwin information at: http://www.mingw.orgOpenLDAP======== You'll find OpenLDAP information at: http://www.openldap.org You need to install it with shared libraries, which is enabled when running the ldap configure script with "--enable-shared". With my linux 2.0.36 kernel I also had to disable using threads (with --without-threads), because the configure script couldn't figure out my system.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -