Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu How to install Pacman     - About Nginx 7 (Server)

- How MAT Android application memory leak analysis (Programming)

- iOS persistence of data archiving NSKeyedArchiver (Programming)

- Use smem visual display Linux memory usage (Linux)

- Binary Packages Golang (Linux)

- Availability Hadoop platform - Oozie Workflow (Server)

- How to build a custom exclusive Ubuntu Live CD (Linux)

- Hibernate Performance Optimization of reusing SessionFactory (Programming)

- Use SocketServer write a sockets program (Programming)

- ORA-14400: inserted partition key does not map to any partition (Database)

- Java development specifications summary (Programming)

- 10 practical Java programming technology (Programming)

- Bash How to read a file line by line (Programming)

- A drop datafile Oracle bug (Database)

- [SHELL] MySQL primary recovery solution from + Keepalived online (Server)

- Linux port scanning (Linux)

- Running the open-source Swift under Linux platform (Linux)

- Ubuntu install snmp packets Unlinked OID in IPATM-IPMC-MIB: marsMIB (Linux)

- Live Wallpaper for Linux release adds dynamic background (Linux)

- Python uses multi-process pool (Programming)

 
         
  Ubuntu How to install Pacman
     
  Add Date : 2018-11-21      
         
       
         
  1, Wget 'ftp://ftp.archlinux.org/other/pacman/pacman-4.1.2.tar.gz' Download the package
 2, tar xvf pacman-4.1.2.tar.gz, decompression software
 3, cd pacman-4.1.2 /, into the code, implementation. / Configure, suggesting that there is no libarchive
 4, the implementation of sudo apt-get libarchive-dev install libarchive
 5, re-implementation. / Configure, through
 6, the implementation of make, error
 -------------------------------------------------- -----------------------------
  CC libalpm_la-be_sync.lo
 Be_sync.c: In function '_alpm_validate_filename':
 Be_sync.c: 499: error: 'PATH_MAX' undeclared (first use in this function)
 Be_sync.c: 499: error: (Each undeclared identifier is reported only once
 Be_sync.c: 499: error: for each function it appears in.)
 Make [3]: *** [libalpm_la-be_sync.lo] Error 1
 Make [2]: *** [all-recursive] Error 1
 Make [1]: *** [all-recursive] Error 1
 Make: *** [all] Error 2
 -------------------------------------------------- ------------------------------
 7, gedit lib / libalpm / be_sync.c, code files, find the code
 -------------------------------------------------- -----------------------------
 Static int _ alpm_validate_filename (alpm_db_t * db, const char * pkgname,
        Const char * filename)
 {
    Size_t len = strlen (filename);
 
    If (filename [0] == '.') {
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is illegal \ n"), db-> treename, pkgname);
        Return -1;
    } Else if (memchr (filename, '/', len)! = NULL) {
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is illegal \ n"), db-> treename, pkgname);
        Return -1;
    }}
Else if (len> PATH_MAX) {
 
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is too long \ n"), db-> treename, pkgname);
        Return -1;
 
    }}
    Return 0;
 }}
 -------------------------------------------------- -----------------------------
 Modify as follows
 -------------------------------------------------- -----------------------------
 Static int _ alpm_validate_filename (alpm_db_t * db, const char * pkgname,
        Const char * filename)
 {
    Size_t len = strlen (filename);
 
    If (filename [0] == '.') {
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is illegal \ n"), db-> treename, pkgname);
        Return -1;
    } Else if (memchr (filename, '/', len)! = NULL) {
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is illegal \ n"), db-> treename, pkgname);
        Return -1;
    }}
/ *
 Else if (len> PATH_MAX) {
 
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is too long \ n"), db-> treename, pkgname);
        Return -1;
 
    }}
 * /
    Return 0;
 }}
 -------------------------------------------------- -----------------------------

 Save, exit

7, the implementation of make && make install, waiting for the installation is complete.
     
         
       
         
  More:      
 
- Household use Linux Security (Linux)
- Linux Fundamentals of the text, data flow processing orders (Linux)
- JavaScript function closures Quick Start (Programming)
- Good wireless network security information spread in the air (Linux)
- Linux Oracle delete archived logs (Database)
- The strings in Python reside (Programming)
- Nginx introduced Dynamic Module Architecture (Server)
- Tomcat session clustering and server session (Server)
- Linux-du and df command (Linux)
- Linux remote landing system (Linux)
- Rails project prepared some tips small experience (Linux)
- CentOS 6.5 makes the LAN http source (Linux)
- RHEL5 multipath configuration (Linux)
- To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)
- RedHat Linux 6 desktop installation (Linux)
- Java MD5 encryption implementation (Programming)
- Oracle common internal event tracking number (Database)
- OpenSSL Introduction and compilation steps on Windows, Linux, Mac systems (Linux)
- Memory leak analysis using Android studio (Programming)
- Ubuntu apt-mirror established local private sources (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.