Laravel Composer需要Mac Sierra的问题(Laravel Composer require issue with Mac Sierra)
我正在尝试在我的应用程序中包含Laravel 5 Facade for Goutte 。 但是我收到以下错误:
Problem 1 - namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it. - namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it. - namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it. - Installation request for namshi/jose (locked at 5.0.2) -> satisfiable by namshi/jose[5.0.2].
我已经在线搜索,它建议安装新版本的PHP并尝试使用它,但我已经通过自制软件安装了php56,但它仍然无法正常工作。 当我跑:
which php
它说路径是:
/usr/bin/php
然而brew安装PHP到:
/usr/local/Cellar/php56/5.6.30_6/bin
我用以下行更新了我的.bash_profile:
export PATH=$PATH:/usr/local/Cellar/php56/5.6.30_6/bin
然而即使重新启动后仍然返回/ usr / bin / php的终端。
I'm trying to include Laravel 5 Facade for Goutte in my application. However I am getting the following error:
Problem 1 - namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it. - namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it. - namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it. - Installation request for namshi/jose (locked at 5.0.2) -> satisfiable by namshi/jose[5.0.2].
I have searched online and it suggests installing a new version of PHP and try using that instead however I have installed php56 via homebrew and its still not working. When i run:
which php
it says the path is:
/usr/bin/php
However brew installed PHP to:
/usr/local/Cellar/php56/5.6.30_6/bin
I have updated my .bash_profile with the following line:
export PATH=$PATH:/usr/local/Cellar/php56/5.6.30_6/bin
However even after restarting the terminal which php still returns /usr/bin/php.
原文:https://stackoverflow.com/questions/44990573
最满意答案
相关问答
更多-
在用DataGridView填充DataGridView之后,该列已经存在于DataGridView ,因此获取并使用它进行排序: DataGridViewColumn col = dataGridView1.Columns["ItemID"]; dataGridView1.Sort(col,ListSortDirection.Ascending) After filling the DataGridView with data, the column is already present in the ...
-
您的主要问题似乎是备份的大小。 如果您每小时进行一次完整备份,则可以通过执行差异备份来节省空间。 如果没有全部更改,则无需备份所有内容,因此您只需要备份上次备份中未包含的新数据。 这样可以节省大量的空间和时间,通常是更好的做法。 我建议你考虑实施一个备用轮换方案。 您可以在此处找到更多相关信息: http://en.wikipedia.org/wiki/Backup_rotation_scheme 我还建议您将文件保存在文件流数据类型字段中,以减少在mdf文件中使用大页面对性能的影响。 It seems l ...
-
数据插入SQL Server数据库时填充datagridview(Fill datagridview when Data insert into SQL Server database)[2021-08-27]
您正在寻找SqlDependency ,它允许您侦听SQL查询的结果集的更改。 You're looking for the SqlDependency, which allows you to listen for changes to the resultset of a SQL query. -
请参阅此处接受的解决方案并手动创建DataTable DataTable dt = new DataTable(); foreach(DataGridViewColumn col in dgv.Columns) { dt.Columns.Add(col.HeaderText); } foreach(DataGridViewRow row in dgv.Rows) { DataRow dRow = dt.NewRow(); foreach(DataGridViewCell ce ...
-
如何使用Datagridview绑定源C#更新SQL Server数据库(How to update SQL Server database using Datagridview binding source C#)[2023-04-21]
在不调用bindingSource1.EndEdit您的基础DataTable看不到任何更改,因此Update命令无需更新。 private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) { bindingSource1.EndEdit(); DataTable dt = (DataTable)bindingSource1.DataSource; // Just for test ... -
DataGridViewCell不跟踪更改。 如果您需要知道Value仅针对一个单元格进行了更改,请使用CellValueChanged事件并在那里执行您的操作。 如果您需要知道哪些单元格已被修改,那么您可以枚举它们并执行必要的操作,请尝试以下操作: HashSet
changedCells = new HashSet (); private void dataGridView1_CellValueChanged(object sende ... -
它看起来像你从来没有设置SQL更新语句,只有select语句。 您需要添加以下内容: sda.UpdateCommand = "UPDATE TABLE SET ..." 或者创建一个新的dataAdapter /命令来处理更新 一旦你有了这个,在sda上调用update应该可行。 修订: 如果是我,我会使用SqlCommand作为更新语句。 private void UpButton_Click(object sender, EventArgs e) { try { u ...
-
如何在sql server数据库中使用数据保存datagridview列(How to save datagridview columns with datas in sql server database)[2021-11-27]
实现此目的的好方法是创建所有已修改行的XML字符串。 将此字符串传递给存储过程。 在存储过程中使用OpenXML ,它允许您轻松更新多行。 Good way to achieve this is to create XML string of all modified rows. Than pass this string to Stored procedure. In stored procedure use OpenXML which allow you to update multiple rows ... -
首先,将图像存储在数据库中是一个有争议的主题,因此请务必考虑这是否真的是您想要的。 有关详细讨论,请参阅: 在DB中存储图像 - 是还是不? 接下来要考虑的是使用什么技术。 你会使用Linq2SQL,NHibernate,Entity Framework还是普通的ADO.NET? 在选择技术时,您应该考虑整个应用程序架构,而不仅仅是关注存储图像(除非这是您的所有应用程序所做的)。 一旦确定,请查看所选技术如何处理二进制数据。 您可以通过HttpPostedFileBase.InputStream获取二进制数 ...
-
由于您使用的是DataSet而不是DataTable因此您需要更改此设置: adapter.Fill(ds); 对此: adapter.Fill(ds,"tbl"); 或者您可以使用DataTable而不是DataSet : DataTable dt = new DataTable(); adapter.Fill(dt); Because you are using DataSet instead of DataTable so you need to change this: adapter.Fil ...