archlinux

Distro provided cross compiler vs custom built gcc

痞子三分冷 提交于 2019-11-28 12:46:30
问题 I intend to cross compile for Raspberry Pi, basically a small ARM computer. The host will be an i686 box running Arch Linux. My first instinct is to use cross compiler provided by Arch Linux, arm-elf-gcc-base and arm-elf-binutils. However, every wiki and post I read seems to use some version of custom gcc build. They seem to spend significant time on cooking their own gcc. Problem is that they never say WHY it is important to use their gcc over another. Can stock distro provided cross

马哥Linux——第四周作业

妖精的绣舞 提交于 2019-11-28 03:32:49
1、新建用户archlinux,要求其家目录为/users/archlinux,而后su切换至archlinux用户,复制/etc/pam.d目录至自己的家目录 创建主目录/users/ [root@centos7 ~]#mkdir /users 创建用户,并指定家目录 [root@centos7 ~]#useradd archlinux -d /users/archlinux 切换用户 [root@centos7 ~]#su archlinux 复制 [archlinux@centos7 ~]$cp -a /etc/pam.d/ /users/archlinux/ 2、创建一个至少有两个PV组成的大小为20G的名为testvg的VG;要求PE大小为16MB,而后在卷组中创建大小为5G的逻辑卷testlv;挂载至/users目录 创建两个10G,且类型为LVM的分区 [root@centos7 ~]#fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): n All

Archlinux Install

给你一囗甜甜゛ 提交于 2019-11-28 01:19:36
#验证启动模式为EFI **ls /sys/firmware/efi/efivars** #联网 **dhcpcd(有线链接)** **wifi-menu(无线链接)** #刷新本地时间 **timedatectl set-local-rtc 1** #分区EFI #cgdisk efi:ef00 **mkfs.fat -F32 /dev/<THAT_PARTITION>** #选择软件仓库服务器 #可通过筛选 最快服务器来 快速获得mirrorlist **sed -I '/China/!{n;/Server/s/^/#/};t;n' /etc/pacman.d/mirrorlist** #安装基本系统 **pacstrap -i /mnt base base-devel** #生成Fstab文件 **genfstab -U /mnt >> /mnt/etc/fstab** #Change root 到新安装的系统: **arch-chroot /mnt** #设置 时区: **ln -sf /usr/share/zoneinfo/Region/City /etc/localtime** #硬件时间设置、将时间更新到硬件上 **hwclock --localtime --systohc** #默认为 UTC 时间,如需设置为本地时间,请执行: **hwclock -

Archlinux清华大学镜像源

旧街凉风 提交于 2019-11-27 22:03:28
archlinux 编辑 /etc/pacman.d/mirrorlist, 在文件的最顶端添加: Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch archlinuxcn 使用方法:在 /etc/pacman.conf 文件末尾添加以下两行: [archlinuxcn] Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch 之后安装 archlinuxcn-keyring 包导入 GPG key。 来源: https://www.cnblogs.com/mc-r/p/11379717.html

Cannot get OpenCV to compile because of undefined references?

邮差的信 提交于 2019-11-27 18:47:24
The code is simple and is essentially straight from this tutorial. I am running Arch Linux and have the OpenCV library stored at /usr/include/ . I have also checked to ensure that /usr/include is in my PATH. #include <opencv/cv.h> #include <opencv/highgui.h> #include <iostream> using namespace cv; int main(int argc, char** argv){ Mat image; Mat grayImage; if(!argv[1]){ std::cerr << "No image data!" << std::endl; return -1; } image = imread(argv[1], 1); cvtColor(image, grayImage, CV_BGR2GRAY); imwrite("Gray_Image.jpg", grayImage); namedWindow(argv[1], CV_WINDOW_AUTOSIZE); namedWindow("Gray

Node Sass does not yet support your current environment: Linux 64-bit with false

痞子三分冷 提交于 2019-11-27 18:38:46
Getting this error on Arch Linux with node-sass. I'm using it with gulp-sass . Node Sass does not yet support your current environment: Linux 64-bit with false Versions $ gulp -v [19:43:15] CLI version 3.9.1 [19:43:15] Local version 3.9.1 $ npm -v 3.9.0 Node $ node -v v6.2.0 Even using this command npm rebuild node-sass is not changing anything. run npm rebuild node-sass or run sudo npm rebuild node-sass Jorge Torres in some cases you need to uninstall and install node-sass library. Try: npm uninstall --save-dev node-sass and npm install --save-dev node-sass You should also check your version

R v3.4.0-2 unable to find libgfortran.so.3 on Arch

て烟熏妆下的殇ゞ 提交于 2019-11-27 15:05:33
I was just on vacation for a month so am unable to say the exact point at which this happened, but R from the official Arch repos is now unable to start, citing /usr/lib64/R/bin/exec/R: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory I thought that perhaps a symlink was improperly placed or destroyed, so I looked in /usr/lib to try to find it: ls -halt /usr/lib/libgfortran.so.* lrwxrwxrwx 1 root root 20 May 16 03:01 /usr/lib/libgfortran.so.4 -> libgfortran.so.4.0.0 -rwxr-xr-x 1 root root 7.1M May 16 03:01 /usr/lib/libgfortran.so

swt browser No more handles Error

两盒软妹~` 提交于 2019-11-27 14:50:41
问题 I wrote a simple program. just a CTabFolder and a WelcomTab inherent from CTabItem. I want to fill my WelcomeTab by a browser which render my htmls. at the init() method of WelcomeTab I Create a Browser but when program want to construct it I get this Error Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.browser.Mozilla.initMozilla(Unknown Source) at org

set-up X11 Forwarding over ssh

女生的网名这么多〃 提交于 2019-11-27 12:25:41
问题 I'm attempting to set up x11 forwarding to monitor video on an embedded robotics platform yet I cannot seem to get the board to generate graphical output. I'm running Arch Linux on a Beagleboard xM wired directly over ethernet (though, I plan to use WiFi in the future). When I try to set the DISPLAY variable it will accept it but when I attempt to run an x11 application is says: (Object:287): Gtk-WARNING **: cannot open display: [displaynamehere] obviously [displaynamehere] was whatever I

Cannot get OpenCV to compile because of undefined references?

試著忘記壹切 提交于 2019-11-26 19:36:03
问题 The code is simple and is essentially straight from this tutorial. I am running Arch Linux and have the OpenCV library stored at /usr/include/ . I have also checked to ensure that /usr/include is in my PATH. #include <opencv/cv.h> #include <opencv/highgui.h> #include <iostream> using namespace cv; int main(int argc, char** argv){ Mat image; Mat grayImage; if(!argv[1]){ std::cerr << "No image data!" << std::endl; return -1; } image = imread(argv[1], 1); cvtColor(image, grayImage, CV_BGR2GRAY);