2017.10.24

2017.10.24 距 NOIp2017 还剩 17 天

互测终于结束了,考出了这几次队策的最好成绩,虽然逆序对那个题调了一个小时,还是比较开心的


这么多次内测,问题更加明朗,有些基础的算法还是不够熟练,要经常写写练练,暴力分一定不能丢(暴力出奇迹,骗分过样例yeah~~)


我不知道能否会成功,但我仍想试一试,哪怕只有一线希望
这里写图片描述

晚安,好梦φ( ̄∇ ̄o)(话说这几天做梦都是noip,各种题…早晨起来脑子里一片混乱,关键每天梦到的题都不重样,今天会梦到啥呢…欲知后梦何题,且听明晚分解)
这里写图片描述

sed@sed-VMware-Virtual-Platform:~/buildroot-2017.08$ make -j16 /usr/bin/make -j1 O=/home/sed/buildroot-2017.08/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig make[2]: 警告: 子 make 中强制 -j1: 重置 jobserver 模式。 mkdir -p /home/sed/buildroot-2017.08/output/build/buildroot-config/lxdialog PKG_CONFIG_PATH="" /usr/bin/make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \ obj=/home/sed/buildroot-2017.08/output/build/buildroot-config -C support/kconfig -f Makefile.br conf /usr/bin/gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE -I/home/sed/buildroot-2017.08/output/build/buildroot-config -DCONFIG_=\"\" /home/sed/buildroot-2017.08/output/build/buildroot-config/conf.o /home/sed/buildroot-2017.08/output/build/buildroot-config/zconf.tab.o -o /home/sed/buildroot-2017.08/output/build/buildroot-config/conf You must install 'python' on your build machine make[1]: *** [support/dependencies/dependencies.mk:22:core-dependencies] 错误 1 make: *** [Makefile:79:_all] 错误 2 sed@sed-VMware-Virtual-Platform:~/buildroot-2017.08$ sudo ln -s /usr/bin/python3.8 /usr/bin/python sed@sed-VMware-Virtual-Platform:~/buildroot-2017.08$ ls -l /usr/bin/python* lrwxrwxrwx 1 root root 18 5月 24 17:40 /usr/bin/python -> /usr/bin/python3.8 lrwxrwxrwx 1 root root 10 8月 8 2024 /usr/bin/python3 -> python3.12 -rwxr-xr-x 1 root root 8019136 2月 4 22:48 /usr/bin/python3.12 sed@sed-VMware-Virtual-Platform:~/buildroot-2017.08$ make j16 make[1]: *** 没有规则可制作目标“j16”。 停止。 make: *** [Makefile:79:_all] 错误 2 sed@sed-VMware-Virtual-Platform:~/buildroot-2017.08$ makeclean makeclean:未找到命令 sed@sed-VMware-Virtual-Platform:~/buildroot-2017.08$ make You must install 'python' on your build machine make[1]: *** [support/dependencies/dependencies.mk:22:core-dependencies] 错误 1 make: *** [Makefile:79:_all] 错误 2 sed@sed-VMware-Virtual-Platform:~/buildroot-2017.08$
最新发布
05-25
### 解决 Buildroot 2017.08 构建过程中因缺少 Python 导致的错误 在使用 Buildroot 2017.08 进行构建时,如果遇到类似于以下错误消息: ``` You must install 'python' on your build machine make[1]: *** [support/dependencies/dependencies.mk:22:core-dependencies] 错误 1 make: *** [Makefile:79:_all] 错误 2 ``` 这表明当前开发机器上未正确安装或配置 Python 环境。以下是详细的解决方案。 #### 方法一:确保系统已安装 Python 并设置软链接 许多现代 Linux 发行版默认只提供 `python3` 而不提供 `python` 命令。然而,某些工具(如 Buildroot 的旧版本)仍然期望存在 `python` 命令作为入口点。可以通过创建符号链接解决该问题。 ##### 步骤说明 1. **检查现有 Python 安装** 使用以下命令查看系统中是否存在 Python 及其版本: ```bash python3 --version ``` 若返回类似 `Python 3.x.y` 的信息,则表示系统已经安装了 Python 3。 2. **创建 `python` 符号链接** 执行以下命令以创建从 `python` 到 `python3` 的符号链接: ```bash sudo ln -sf /usr/bin/python3 /usr/bin/python ``` 上述命令会将 `/usr/bin/python` 指向当前系统的 Python 3 版本。注意,此操作可能会影响其他依赖于特定 Python 版本的应用程序,请谨慎处理。 3. **验证符号链接** 输入以下命令验证是否成功创建符号链接并能正常运行: ```bash python --version ``` 输出应为当前系统中的 Python 3 版本号。 #### 方法二:显式安装所需依赖项 除了 Python 外,部分功能还可能需要额外的模块支持,例如 Matplotlib 和 argparse。尽管 Buildroot 自身并不直接依赖这些模块,但如果项目中有自定义脚本涉及它们,则也需要相应安装。 ##### 安装步骤 1. **更新包管理器索引** 对于基于 Debian 的系统(如 Ubuntu),先刷新软件源列表: ```bash sudo apt update ``` 2. **安装必要组件** 接着安装所需的 Python 库及相关工具链: ```bash sudo apt install python3-pip python-is-python3 pip3 install matplotlib argparse ``` 其中,`python-is-python3` 是一个虚拟包,用于自动建立 `python -> python3` 的映射关系;而通过 Pip 工具则可进一步扩展至更多第三方库的支持[^1]。 3. **重新尝试构建过程** 返回到原始工作目录再次发起构建流程: ```bash cd /path/to/buildroot-2017.08/ make clean && make ``` #### 注意事项 - 不同操作系统间可能存在细微差异,在执行上述指令之前建议查阅对应平台官方文档获取更精确指导。 - 如果团队内部有统一 CI/CD 流程或者容器化部署策略的话,最好把相关初始化逻辑封装起来以便后续维护更加便捷高效。 --- ###
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值