我正在尝试使用 Laravel 从本地主机从 Gmail 发送电子邮件。我收到此错误:
Connection could not be established with host smtp.googlemail.com
:stream_socket_client(): unable to connect to ssl://smtp.googlemail.com:465
(A connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because
connected host has failed to respond.)
Run Code Online (Sandbox Code Playgroud)
我的 .env 文件:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=465
MAIL_USERNAME=myusername@gmail.com
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=ssl
Run Code Online (Sandbox Code Playgroud)
错误是什么?我需要更改服务器或防火墙中的某些设置吗?
我正在尝试将单元测试框架 cMockery 添加到我的 C 项目中。我已经将 cMockery 下载并安装到全局包含路径中。但是#include <cmockery.h>在我的源文件中之后,cmake 会引发以下问题。如果我也使用,似乎会抛出同样的事情cMocka。我错过了一些包裹吗?
编辑:Google 搜索"/usr/include/google/cmockery.h:365:8: error: unknown type name ‘jmp_buf’"正好返回0 个结果(现在 1 个结果指向此问题)。以及搜索unknown type name 'jmp_buf'只解释了它是什么。不是如何修复它或为什么它会发生在 cmockery 中。
/usr/bin/cmake --build /home/.../data-structures-c/cmake-build-debug --target data_structures_c -- -j 3
Scanning dependencies of target data_structures_c
[ 50%] Building C object CMakeFiles/data_structures_c.dir/main.c.o
In file included from /home/.../data-structures-c/main.c:3:
/usr/include/google/cmockery.h:365:8: error: unknown type name ‘jmp_buf’
extern jmp_buf global_expect_assert_env;
^~~~~~~
make[3]: *** [CMakeFiles/data_structures_c.dir/build.make:63: CMakeFiles/data_structures_c.dir/main.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:73: CMakeFiles/data_structures_c.dir/all] Error 2 …Run Code Online (Sandbox Code Playgroud)