小编Cou*_*one的帖子

configure:错误:C编译器无法创建可执行文件

我在stackoverflow上检查了一些类似的问题,但还没有找到答案.

我正在尝试在Lion OSX上安装memcached,如下所示.

这是我得到的:

j-court-demones-macbook-pro:libevent-1.4.12-stable jcourtdemone$ ./configure; make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: in `/tmp/libevent-1.4.12-stable':
configure: error: C compiler cannot create executables
See `config.log' …
Run Code Online (Sandbox Code Playgroud)

macos memcached libevent osx-lion

132
推荐指数
8
解决办法
16万
查看次数

在flexbox列子上高度100%

我在使用flexbox列时遇到麻烦,因为flex'd元素的子元素不会以height百分比形式响应.我只在Chrome中检查过此内容,据我所知,这只是Chrome的问题.这是我的例子:

HTML

<div class='flexbox'>
  <div class='flex'>
    <div class='flex-child'></div>
  </div>
  <div class='static'></div>
</div>
Run Code Online (Sandbox Code Playgroud)

CSS

.flexbox{
  position:absolute;
  background:black;
  width:100%;
  height:100%;

  display: flex;
  flex-direction:column;
}

.flex{
  background:blue;
  flex:1;
}

.flex-child{
  background:red;
  height:100%;
  width:100%;
  display:block;
}

.static{
  background:green;
  width:100%;
  height:5rem;
}
Run Code Online (Sandbox Code Playgroud)

这是CodePen.

我想要它,所以红色.flex-child填充蓝色.flex.为什么不起作用height:100%

css height google-chrome percentage flexbox

81
推荐指数
1
解决办法
8万
查看次数

Sublime Text CoffeeScript构建系统:`env:node:没有这样的文件或目录`

我正在尝试在Sublime Text 3中设置CoffeeScript构建系统,但我一直收到以下错误:

env: node: No such file or directory
[Finished in 0.0s with exit code 127]
[cmd: ['coffee', '-o','/Users/jcourtdemone/Sites/autotempest.com/new_design_sandbox/static/script', '-cw', '/Users/jcourtdemone/Sites/autotempest.com/new_design_sandbox/static/coffee']]
[dir: /Users/jcourtdemone/Sites/autotempest.com/new_design_sandbox/static/coffee]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
Run Code Online (Sandbox Code Playgroud)

我的构建系统看起来像这样:

{
    "name": "Coffee - AT",
    "cmd": ["coffee","-o","${project_path:${folder}}/static/script","-cw","${project_path:${folder}}/static/coffee"],
    "selector": "source.coffee",
    "path":"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/lib/node_modules/coffee-script/bin"
}
Run Code Online (Sandbox Code Playgroud)

有两件事情很奇怪.

1)它说它正在查找存在/usr/bin符号链接的位置coffee.

2)由于(1),我推翻$PATH,包括实际位置coffee/usr/local/lib/node_modules/coffee-script/bin,但出于某种原因,$PATH没有被覆盖得当,它与默认的坚持$PATH.

注意事项:

i)我已经验证所有路径都是正确的,并通过常规终端命令正常传递.

ii)尝试使用"shell": true构建系统中的变量.

iii)我有另一个Compass这样的构建系统,工作正常.

有人遇到类似的问题或问题吗?有任何想法吗?

build-automation coffeescript sublimetext sublimetext3

43
推荐指数
3
解决办法
5万
查看次数

输入标签上的Flexbox垂直对齐问题

基本上,我有一个label与文本input内嵌在Flexbox的彼此,与input弯曲,align-items设置为基线.该input挠曲填写含有div正常,但label用的底部对齐input,而不是在文本基线应该的.

此问题出现在Chrome和其他WebKit浏览器中.

这是代码.您可以查看它在此Codepen中的呈现方式.

HTML:

<div>
  <label>Email:</label>
  <input type='text' />
</div>
Run Code Online (Sandbox Code Playgroud)

CSS:

div{
  width:20rem;
  background:#999;
  padding:.5rem;

  display:flex;
  align-items:baseline;
}

input{
  flex:1;
}
Run Code Online (Sandbox Code Playgroud)

如果你注释掉display: flex,对齐是正确的,但自然它不再弯曲.

如何在不使用hack的情况下解决这个问题align-items: center

注意:我最初在一个不同的问题上发布了这个问题并回答了它并被删除了.我按照建议修改了它,希望它现在符合指南.

css vertical-alignment flexbox

4
推荐指数
1
解决办法
1614
查看次数