Ubuntu64位机上快速搭建ApacheMySQLPHP环境

智能家居项目(六)之摄像头模块 智能家居项目(六)之摄像头模块;树莓派mipg-streamer实现监控功能调试;在安装sudo apt-get install libv4l-dev 的命令时报错;因为是bullseye版的系统,所以没有input_raspicam.so文件;以下内容是针对树莓派是stretch版本的修改办法 阅读详情

    在32位机上,可以使用xampp,只需要解压缩即可以使用,非常方便,下载地址及使用帮助参见官方网站:

        http://www.apachefriends.org/en/xampp-linux.html

    可是目前xampp不支持64位机,当然如果你是amd64 或者 ia64 Debian系统,可以在64位的机器上安装支持32的包:

        sudo apt-get install ia32-libs

    就可以在64位机上使用32位的xampp了,可是64位的ubuntu安装这个支持32位的包,是不成功的,会报如下的错误:

The following packages have unmet dependencies:
  ia32-libs: Depends: lib32gcc1 but it is not installable
             Depends: libc6-i386 (>= 2.3.6-2) but it is not going to be installed
             Depends: lib32z1 but it is not installable
             Depends: lib32stdc++6 but it is not installable
             Depends: lib32asound2 but it is not installable
             Depends: lib32bz2-1.0 but it is not going to be installed
             Depends: lib32ncurses5 but it is not installable
             Depends: lib32v4l-0 but it is not installable
E: Broken packages

    不过ubuntu可以有其它的选择,就是通过tasksel进行安装,安装步骤:

    1、先安装tasksel:

        sudo apt-get install tasksel

    2、安装AMP:

        sudo tasksel install lamp-server

    3、卸载,需要删除以下的包:   

apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
    4、apache的配置写到:/etc/apache2/httpd.conf 文件中,不过此时默认安装是不支持rewrite的,要启用rewrite,需要执行:

        sudo a2enmod rewrite

    详细参见:https://help.ubuntu.com/community/ApacheMySQLPHP

本文出自:冯立彬的博客




gcc-multilib在Ubuntu20.04上无法安装 Ubuntu20.04无法安装 gcc-multilib g++-multilib错误内容解决方案 错误内容 执行sudo apt install gcc-multilib g++-multilib报错 sudo apt install gcc-multilib g++-multilib 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是 因为系统无法达到您要求的状态造 阅读详情

相关推荐

Windows系统3D Gaussian Splatting环境搭建全攻略:从零开始到成功运行

本文详细介绍了在Windows系统上搭建3D Gaussian Splatting环境的完整流程,包括CUDA 12.6安装、Anaconda环境配置、代码获取与依赖安装等关键步骤。针对Windows平台特有的环境配置问题,提供了实用的解决方案和常见错误排查方法,帮助开发者快速实现3D Gaussian Splatting的成功运行。

weixin_30832143的博客 463

“sudo apt install libncurses5“ 失败找不到安装包解决

【代码】"sudo apt install libncurses5" find no package solution。

oushaojun2的专栏 3171

在VSCode中使用LaTex+(grammarly语法检测,chatgpt翻译,Sumatra PDF 轻量级pdf阅读器)

整个文章分为以下几个内容,打 * 的是必须要安装的。

u011895157的博客 2万+

Ubuntu入门不能犯的四个错误

升级Ubuntu系统:如果已经安装了旧版本的Ubuntu,可以使用Ubuntuiso镜像文件执行系统升级。通过引导到Ubuntuiso镜像,可以选择升级现有的Ubuntu版本,保留数据和设置,或者执行全新的安装。ISO是Ubuntu操作系统的ISO镜像文件,Ubuntu ISO镜像文件包含了完整的Ubuntu操作系统安装介质,并可用于创建启动光盘或USB驱动器,以便安装或升级Ubuntu操作系统。Ps:还有一种情况是软件包已经被更新替代了,新的Ubuntu系统无法找到旧的版本,这种情况第4点会解释。

m0_62787705的博客 2532

一文理解近红外光谱数据建模步骤的细节(细节知识总结)

上一篇文章,向入门的同志大体介绍了近红外光谱数据建模的内容,依据上文其实已经可以基本完成数据建模的工作,但是很多工作不够细致,本文便是分享其中的一些技术细节。

weixin_46207310的博客 5585

workbench 流固耦合_基于ANSYS 2019R1全解一款双吸泵的双向流固耦合方法

一、导读对于旋转机械来说,传统设计从理论计算到手工木模图,再到模型泵的加工制造,最后进行相关性能试验。当性能试验与预期效果差距较大的时候还需要修改水力模型。这种传统的设计不仅设计周期长,而且成本也高,在没有成熟的水力模型参考的情况下做设计风险也较大。而日益强大的CFD技术为旋转机械行业的发展提供了非常有力的工具。大量工程实践证明像CFX、Fluent以及Pumplinx等流产分析软件具有较高的计算...

weixin_39604280的博客 4785

ubuntu无法安装libncurses5-dev解决办法

学习嵌入式uboot移植,需要安装libncurses5-dev,执行命令如下: sudo apt-get install libncurses5-dev 但是出现下面问题: E: 无法下载 http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses5-dev_6.2-0ubuntu2_amd64.deb 暂时不能解析域名“cn.archive.ubuntu.com” E: 有几个软件包无法下载,要不运行 apt-get upda

内容主要在公众号OneChan讲Soc嵌入式上更新 6695

避坑指南:LabelMe与Anaconda环境冲突?一招搞定‘conda activate labelme‘失败及命令找不到问题

本文详细解析了LabelMe与Anaconda环境冲突的常见问题及解决方案,包括如何正确在conda环境中安装LabelMe、手动桥接系统安装的LabelMe以及深入理解conda环境管理。通过实战步骤和最佳实践指南,帮助开发者有效解决'conda activate labelme'失败及命令找不到问题,提升Python多环境管理效率。

weixin_34168834的博客 502

stm32cubeide 1.16.1 在ubuntu 24.04上的安装

箭头所指的包是三个包的嵌套依赖,还好只嵌套了一层。需要从ubuntu官网下载这些旧版本的软件包,

cylinc的专栏 854

关于 Nginx 监听地址 0.0.0.0 的详细解释

0.0.0.0在Nginx配置中表示监听服务器所有网络接口(包括公网IP、内网IP和本地回环地址),这是默认配置。当使用listen 80;时,Nginx会接受通过服务器任何IP地址的80端口访问请求。相比只监听特定IP,这种配置更通用,但也意味着服务会对外网开放,需注意安全风险。可通过netstat命令验证监听状态,显示0.0.0.0:80即表示正确配置。

weixin_43674738的博客 1576

ROS机器人未知环境自主探索功能包explore_lite最全源码详细解析(一)

本系列文章主要针对ROS机器人常使用的未知环境自主探索功能包explore_lite展开全源码的详细解析,并进行概括总结。 本系列文章共包含六篇文章,前五篇文章主要介绍explore_lite功能包中 explore.cpp、costmap_tools.h、frontier_search.cpp、costmap_client.cpp等源码实现文件中全部函数的详细介绍,第六篇文章进行概括总结,包含自主探索功能包explore_lite的简介,实现未知环境自主探索功能的原理及流程总结,效果演示,使用功能包

慕羽★的博客 3947

Linux下libncurses5-dev安装报错解决方法

sudo apt-get install libncurses5-dev 安装报错: libncurses5-dev : 依赖: libtinfo5 (= 6.1-1ubuntu1) 但是 6.1-1ubuntu1.18.04 正要被安装 依赖: libncurses5 (= 6.1-1ubuntu1) 但是 6.1-1ubuntu1.18.04 正要被安装 依赖: libtinfo-dev (= 6.1-1ubuntu1) 但是它将不会被安装 E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏

weixin_42721128的博客 1万+

55、宇宙微波背景辐射望远镜及其光学系统解析

本文详细解析了宇宙微波背景辐射(CMB)望远镜及其光学系统的设计与优化。内容涵盖折射与反射光学系统的特性、旁瓣控制技术、气球与地面观测系统的对比、探测器阵列的发展、光学系统设计流程以及不同观测场景下的光学系统选择。同时,文章展望了CMB望远镜光学系统的未来发展趋势,包括技术创新、多频段观测、国际合作与大型项目等。通过系统性的分析与对比,为CMB研究提供了全面的技术支持与理论基础。

f9g0h的博客 153

无法安装libncurses5-dev解决方法

我使用的环境是ubuntu18.04 的64位系统,因为要配置内核源码,所以需要使用“make menuconfig”,结果 遇到这个问题 经过百度查阅后,发现使用此命令需要安装libncurses5-dev这个软件 于是联网下载 出现了缺少一个依赖libtinfo-dev 此后,查阅相关资料后找到了https://packages.ubuntu.com/bionic-updates/l...

isco22的博客 2万+

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

Kali安装源切换以及Depends: libssl1.0.0 but it is not installable解决办法

源: 运行: leafpad /etc/apt/sources.list 添加如下内容: #kali官方源 deb http://http.kali.org/kali kali-rolling main non-free contrib #中科大kali源 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contri...

rznice的专栏 8415

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

“lib32ncurses5 : Depends: libc6-i386 (>= 2.18) but it is not going to be installed”类似问题解决办法

问题背景 在64位Linux操作系统的主机上安装32位的交叉编译链时,如果64位系统与32位的工具链不兼容,在我们使用工具链对代码进行交叉编译时,往往会出现明明工具链已经安装到了指定的目录下,环境变量也都设置好了,而系统却依旧提示与arm-XXX-linux-gnueabi-g++: error while loading shared libraries:libXXXXX.so.n: c...

Reflection_in_water的博客 8293

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

错误:The following packages have unmet dependencies

错误:The following packages have unmet dependencies

ken2232的博客 1万+

联想y7000 Ubuntu16.04安装显卡驱动:nvidia-430:Depends:lib32gcc1 but it is not going to be install...等错误

博主电脑型号是联想的y7000,显卡型号是1650的,在安装双系统Ubuntu16.04的独显驱动遇到了一个很奇葩的错误,搞了2天尝试网上各种办法不成功,最后自己摸索出了一条捷径,供各位参考! 说明:首先一般人都会网上搜索通过命令形式安装,无论是线下自己从官网下载的驱动还是通过ppa形式安装都可以,其实还有一种不用直接ubuntu下图形界面操作。 如果命令安装或者图形选择 ...

永恒的记忆 1814

Ubuntu下面包依赖损坏的解决unmet dependencies

出现dependencies的原因 在新版的Ubuntu下,例如Ubuntu 14.04或者16.04一般是不会出现broken dependencies,或者出现unmet dependencies, 但是如果我们使用dpkg强制安装了某些deb包,或者在build-dep的是否手动更改了某些Packages的文件和版本时, 那么在再次使用apt-get install或者build-dep来

TonyHo's NotePad 7万+

关于Ubutun20及以上安装gcc-4.4 gcc-4.4-multilib的方法

Ubutun20及以上:gcc-4.4安装指南

m0_73547627的博客 3251

Ubuntu16如何安装32位兼容库,即ia32-libs

Ubuntu16如何安装32位兼容库,即ia32-libs,安装遇到一些问题 1.sudo apt-get update 2.sudo apt-get install lib32stdc++6 lib32z1 lib32ncurses5 lib32bz2-1.0 ubuntu使用”apt-get install“安装程序时遇到错误提示 You might want to run...

秋天的风的博客 5420

Depends: libtinfo5 (>= 6) but it is not going to be installed

vim : Depends: libtinfo5 (>= 6) but it is not going to be installed #docker 系统基本版:debian:buster-slim #执行安装 apt-get install vim时出错 # 依赖库版本过低导致 #重新安装 apt update && apt install -y libtinfo5 --allow-remove-essential apt-get -y install vim ...

平凡的心 6184

解决apt-get install在安装软件包时依赖不兼容问题

解决apt-get install在安装软件包时依赖不兼容问题在树莓派上安装libncurses5-dev出现以下问题解决 在树莓派上安装libncurses5-dev出现以下问题 pi@raspberrypi:~/6lbr/examples/6lbr $ sudo apt-get install libncurses5-dev Reading package lists… Done B...

qq_21987631的博客 1万+

编译libncurses5-dev遇到的问题

有个程序要编译的时候,cmake出现了错误 Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) 得知是缺少libncurses5-dev库,在网上下载一个.deb文件安装报了错 dpkg: dependency problems prevent configuration of libncurses5-dev:amd64: libncurses5-dev:amd64 depends on libtinfo5 (=

熊猫Ben的博客 2182
上一篇: Developing a Service Provider using Java API(Service Provider Interface)
下一篇: ubuntu中提示找到make命令的解决方案
冯立彬
冯立彬 优质创作者: 编程框架技术领域 优质创作者: 编程框架技术领域
博客等级 码龄21年 5458粉丝 593原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址